Gossamer Forum
Home : General : Perl Programming :

404 Error (Page not found)

Quote Reply
404 Error (Page not found)
I was searching for this long time, but with no luck.
Does anyone has a FAQ on how to setup 404 Error page? Link to an online FAQ? Smile

Thank you in advance.


Pasha

------------------
webmaster@find.virtualave.net
http://find.virtualave.net
Quote Reply
Re: 404 Error (Page not found) In reply to
Hiya Pasha,

It's quite simple really, you just use the following syntax:

ErrorDocument 404 /path/to/errors/dir/404.htm

If you want to set one up for other error documents, just change 404 to the appropriate number, 500 or 403 or whatever. The /path/to/errors/dir is from DOCUMENT root, not server root.

This line would go in either your servers srm.conf (or httpd.conf if you have the "one true config file" setup), or you can use it a .htaccess file in the directory under which you want to display the error page.

Cheers,
adam
Quote Reply
Re: 404 Error (Page not found) In reply to
You might also want to look at the neat script from BigNoseBird, called Birdtrap. You can find it at http://www.bignosebird.com/carchive/birdtrap.shtml

[This message has been edited by Bobsie (edited April 27, 1999).]
Quote Reply
Re: 404 Error (Page not found) In reply to
Thanks guys,
I created .htaccess file with ErrorDocument 404 /404.htm line.
Everything works now. Smile
Again, thank you.


Pasha

------------------
webmaster@find.virtualave.net
http://find.virtualave.net