Now that we know how to use .htaccess let's get into how exactly to effectively design a 404 error document page. Here are a few tips when building your document:

Keep The Design Constant.

That is, whatever design your web site supports, consider keeping that design when building your error document. This is not mandatory, however. If you have a good reason to stray from your design, then do so. Otherwise, keep it constant.

Use Attractive Dialog.

Do not use the word error. Error signifies something is terribly wrong, and while that may be so, you should give that information to your visitor in a very friendly way. Instead, consider writing "Sorry, the page you were looking for is not available at the moment".

Include Contact Information.

Obviously, you want to fix the error, so give the user every opportunity to e-mail you about the error. Some users will not bother to do so, but you still need to give them the opportunity.

Keep The Visitor Moving.

Often, 404 error pages are like road blocks, or brick walls that the user cannot pass through. You need to break through the barriers and allow the visitor to keep traveling through your web site. If your web site supports a search capability, include a form on your error document to let them search for the information they were originally seeking. At the very least, include a link to your home page.

Give Them A Site Map.

When the user clicks upon a page that is no longer available, or was mistyped by the webmaster, consider adding a link to a site map page, or include your site map right on your 404 error document, so the user can get their bearings within your site, and can locate their desired content quickly and easily.

Give Them Help.

List tips on your error document page to help the visitor diagnose the error. For example, ask them to double check the URL in their browser's address bar. If it's correct, politely ask them to e-mail you to report the error. Also suggest that they visit your home page (or search utility) to find the information they are after.

List Some Popular Links.

Provide the user with a few links to your most popular content areas of your web site, as it is more likely they were searching for that content than anything else.

As you have seen, error documents are more important than you may think. Merely having a custom error page shows you have put forth effort on your web site and want to help the user find the information they need. Error documents are easy to create and adds professionalism to any web site.

Article written by Lee.

http://www.spamboards.com