Apache
  Home arrow Apache arrow Page 3 - Implementing Sensible 404 Pages With Apach...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
APACHE

Implementing Sensible 404 Pages With Apache
By: Steve Adcock
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 9
    2002-05-01

    Table of Contents:
  • Implementing Sensible 404 Pages With Apache
  • Custom error documents
  • Designing the error document
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Implementing Sensible 404 Pages With Apache - Designing the error document


    (Page 3 of 4 )

    Now that we’ve got the technical discussion out of the way, let's get into how exactly to effectively design a 404 error document page. Here are a few tips when furnishing 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 your visitor to keep travelling 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 one that 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.

    More Apache Articles
    More By Steve Adcock


     

    APACHE ARTICLES

    - Programmatically Manipulating Microsoft Exce...
    - Installing PHP under Windows
    - Compressing Web Content with mod_gzip and mo...
    - Compressing Web Output Using mod_deflate and...
    - Setting Up Apache 2.0.45 to Parse PHP Pages
    - Custom Error 404 Documents with PHP
    - Using Apache and PHP on Mac OS X
    - ASP: Active Sessions, Active Logins and Tota...
    - Working With Oracle on Windows: Part 1
    - The Quick-n-Dirty Guide to Setting Up Apache...
    - Installing Apache With SSL: The Complete Gui...
    - 7 Powerful .htaccess Customization Tips
    - Trap And Get Notified: A Practical Solution ...
    - One Way To Use Server Side Includes
    - Using ForceType For Nicer Page URLs






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT