dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Web
Expertise: All
Jan 22, 1999

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Customize Your 404 Page

Even if your Web site is rock-solid with no broken links on it anywhere, chances are someone is going to see a 404 File not Found error page someday, if only because the user typed in an address incorrectly. For that reason, it's a good idea to customize it--the default 404 page is distinctly unhelpful. A good 404 page should inform the user that the page wasn't found, and provide links to the front page of the site, the search page, the index, or wherever. It should also use a meta-refresh tag to automatically send the user to the front page of the site after some interval--10 seconds is a good first guess.

For Apache and Netscape Web servers, the place you specify your 404 page is in the srm.conf file, on the line that contains:

 
ErrorDocument 404 
Uncomment it if it's commented out, and give it a path to the custom error page you've created.
Steve Renaker
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date