Posted on November 22nd, 2006
8686 views
Custom Error Pages
Theres not much to this either. You can use this if you want to use custom pages instead of the boring old default ones. First of all, there are 5 common types of errors. Not ALL errors are listed. 400 - Bad Request 401 - Authorization Required 403 - Forbidden 404 - Wrong Page 500 - Internal Server Error Before you insert the .htaccess code, you need to create the error files. These can be anything you choose, and just upload them to your website. Here is the code you will need ErrorDocument 400 http://www.yoursite.com/400.html ErrorDocument 401 http://www.yoursite.com/401.html ErrorDocument 403 http://www.yoursite.com/403.html ErrorDocument 404 http://www.yoursite.com/404.html ErrorDocument 500 http://www.yoursite.com/500.html
|