|
MrPhil
|
 |
« Reply #1 on: February 01, 2010, 11:13:10 AM » |
|
Apache servers have a very strange quirk. If you have an error, they will first attempt to find your custom error document (handler), such as /404.shtml or anything you defined with an ErrorDocument 404 /filename. So far so good, but if it doesn't find your handler, it logs its inability to find your handler as a 404! So, you get two errors logged instead of one.
You need to create your own set of error documents (error handlers). The easiest is (in cPanel) to click on the Error pages button and create the basic set /400.shtml, /401.shtml, /403.shtml, /404.shtml, and /500.shtml. No need to put anything in .htaccess. You need to add some code around what they give you to set colors, font, show the name of your site, contact information, sitemap and homepage links, etc. Just keep it simple so that it's not likely to cause a 404 itself. I tried to attach the /404.shtml file I use, but the LF server is broken (directory not writable).
You are free to put your error documents elsewhere (than /) or with different names or types (e.g., /errors/error404.html), but then you need the .htaccess entries for them.
|