XF 1.5 explain purpose of ErrorDocument default in default .htaccess


Active member
The default xenforo .htaccess has the following directives:
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default
What is the purpose of these exactly?

If one wants to have a custom 403 error page, does it create an issue for xenforo's operation to alter the above?


XenForo developer
Staff member
Note that in normal operation, these will never be hit. Any page that goes to XenForo won't apply these. The main reason for the rules is to aid debugging when the web server generates an error page itself. They are commonly pointed to something like 500.shtml, which ends up triggering a 404 within XF and thus making debugging more difficult. In normal usage, you should never be triggering these rules.