What should I know about Custom Error Documents?

This FAQ was last modified on: Tuesday, February 16, 2016 04:10pm

Several sites use the standard ErrorDocument directive in .htaccess to specify your own custom formatted error documents (i.e. 404 Not Found, etc). The general Apache configuration all domains live under have a generic alias for /error to Apache's internal error documents. This means that you should not put your custom error documents under a directory called /error. Put there somewhere else such as "custerrordocs" in your httpdocs directory. Your .htaccess file would then look like this:

ErrorDocument 404 /custerror/404/index.html
ErrorDocument 403 /custerror/403/index.html