View Single Post
Old June 23rd, 2008, 6:29 PM   #2 (permalink)
fury
Surpass Fan
Excelling Contributor
 
fury's Avatar
 
Joined in Dec 2005
Lives in MN > USA
Hosted on pass84
934 posts
Gave thanks: 45
Thanked 41 times
Additionally, you can use .htaccess to use custom error pages that are not .shtml only.

Code:
ErrorDocument 500 /errors/500.php
ErrorDocument 404 /errors/404.php
ErrorDocument 403 /errors/403.php
ErrorDocument 401 /errors/401.php
ErrorDocument 400 /errors/400.php
Simple add some or all of these lines into your root [public_html] .htaccess file and it will be reflected across your entire site.

This is useful if you want to use something like PHP to put the error message into a database so you can see where the bad links are coming from, or something like that.

__________________
fury™ - not helping the situation since 1987
robmonroe.net | | bullsux.com
fury is offline   Reply With Quote
This user thanks fury for this great post!
Roxy (June 23rd, 2008)