Interesting Tip: Custom 404 Errors

Huntington Woods Public Library htwd at tln.lib.mi.us
Mon Jul 10 09:58:35 EDT 2000


I thought I would pass along an interesting tip I discovered this weekend.  If you make a lot of directory changes or delete pages from your website, you will appreciate this.  Instead of a user seeing the default 404 error page when a page no longer exists, you can create your own!

Create a file called '.htaccess' with the following line:

ErrorDocument 404 http://www.yourwebserver.com/404.html

Then, create a file called 404.html and make it redirect to your server's homepage.

You can view an example at http://www.huntington-woods.lib.mi.us/404.html

Enjoy!

***********************************************
Brent J. Pliskow
Technology Coordinator
Huntington Woods Public Library 
http://www.huntington-woods.lib.mi.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webjunction.org/wjlists/web4lib/attachments/20000710/e572fdc5/attachment.htm


More information about the Web4lib mailing list