Forum Moderators: phranque

Message Too Old, No Replies

Best way to code a 404 page?

         

cgchris99

3:21 pm on May 19, 2005 (gmt 0)

10+ Year Member



What is the best way to handle the 404 page.

Do you put up a dummy page about the company and a link to the main site or do you have it automatically re-direct to the home page?

Thanks for any info

sgaze

3:46 pm on May 19, 2005 (gmt 0)

10+ Year Member



I think it's better to redirect to an specific error page like that :

"The requested page has not be found but you can go there now :

[Site map]"

rocknbil

5:26 pm on May 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Definately give them something navigable, as above for a static site. If you have any server-side programming on your site, a dynamic 404 works well too as it can be used to generate things you need to know as to how they got there. If this is the case, while you're at it add a 500 errorhandler too.

kodaks

6:57 pm on May 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here is a great guide that has been mentioned in FOO a while back:
[plinko.net...]