ErrorDocument 404


Wonder why so many sites don't implement this, in fact this is one thing all sites should do. It makes sites more friendlier to users and will at least cover the impression of having bad pages.

ErrorDocument 404 when placed on the main apache configuration or if you want it site specific - in .htaccess like so:

ErrorDocument 404 /notfound.htm

Will catch all file not found error. I also read these 3 good principles when creating a 404 page:

  • A clear statement that the visitor is in the wrong place;
  • Advice to help them get back on track;
  • An option for getting in touch with the website owner.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
3 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.