Web Design Information

.htaccess to Mask Errors on Your Website


The .htaccess file is a control file located in your webservers directory. This file is a very powerful file that can control access to certain files, restrict access to files, forward people in the event of errors, and many more useful features for webmasters!

One of the most embarrassing things for a webmaster is to have a website with dead links, bad URLs, and error messages when the user surfs through your website. Using the .htaccess file you can help reduce how noticeable those errors are by quickly moving the user to a correct working location. This method of course doesn't correct the underlying problem with your website, however it does help to keep your website looking more professional.

Common error codes that you want to try to hide from the user:

400 - Bad Request
401 - Authorization Required
403 - Forbidden
404 - Page Not Found
500 - Internal Server Error
501 - Not Implemented

The biggest and most common error by far is the 404 Error (Page not found), but all of these can be embarrassing and troublesome to webmasters. If an error occurs on your website you don't want to lose that user. You may not be able to provide them with a link to the page they wanted, but you might get another chance if you redirect them to another page within your website.

Syntax for .htaccess file:

ErrorDocument ### index.php -- Example of format
ErrorDocument 404 /index.php -- Working example

In the second example, should a user request a page that no longer exists on your website, they will automatically have the index.php file loaded. This can be done for all of the error codes listed above and will help to hide and glaring mistakes in your website.

As I mentioned before, this is not a fix action for your website, but simply a mask. It's very important to review your website logs and look for error codes. The goal is to have a good working website afterall!

Ken Dennis
http://KenDennis-RSS.homeip.net/


MORE RESOURCES:

Web Design- the invisible hand to the success of your business.
American Chronicle, CA - 21 hours ago
Business and website go hand in hand. Website is the focal point of your business, interacting with your customers and clients round the clock. ...


Web design & FOSS
ZDNet UK, UK - Jul 2, 2008
Well, to be more precise, this is probably my problem with Notepad++, the venerable open source Windows text editor. I can’t open HTML files. ...


IBM Research Partners With EU Consortium to Speed Up Mobile Web ...
CNNMoney.com - Jun 30, 2008
IBM (NYSE: IBM) is announcing a collaboration with European Union partners at the GNU Compiler Collection (GCC) Summit to develop new software that will ...


'Integrate SEO at the start of web design projects'
Epiphany Search News, UK - Jul 2, 2008
Companies should do more to place search engine optimisation (SEO), usability and accessibility at the heart of their web design projects. ...


Web design business celebrates tenth anniversary
Peterborough, UK - Jul 2, 2008
Peterborough based web design company, InternetNow! - www.internetnow.co.uk - is celebrating its tenth anniversary in June this year. ...


PracticalSports.com featured on Practical eCommerce
PRLog.Org (press release), Romania - 11 hours ago
Simplicity of webdesign and business was the core of this article. In this article Byron gives his advice on running a small web business. ...


The 10 Commandments of Web Design
BusinessWeek - Jun 24, 2008
Meanwhile, Web design vogues from the effervescent jumble of HotWired to the stark utility of Google (GOOG) have continued to evolve and become more ...


Web Design Case Study: Search
BusinessWeek - Jun 24, 2008
And more recently, Cederholm's high-profile redesigns of ESPN's search pages as well as Web design and branding work for indie search engine Rollyo.com have ...


Web Design Case Study: Data Visualization
BusinessWeek - Jun 24, 2008
by Reena Jana "Someone once described what we do as 'Web design that doesn't suck'," says Stamen founder and creative director Eric Rodenbeck, with a laugh. ...


Dutch search engine Cityzapper goes mobile
Telecom Paper (subscription), Netherlands - Jul 4, 2008
Dutch creative website bureau Multi Channel Marketing and Dutch website design bureau Ben Latten Webdesign, have expanded their Cityzapper service with a ...

Web-Design - Google News

Home | Site Map

Powered By: Work At Home With Google - FREE!

© 2006
Google