Custom error documents

Gerry

Active Member
#1
We use the following to create custom error documents to remove the LiteSpeed footer in these and use our own:

Code:
Alias /cust_err_doc/ "/config/var/http/"
ErrorDocument 400 /cust_err_doc/errors/400.php
ErrorDocument 404 /cust_err_doc/errors/404.php
ErrorDocument 403 /cust_err_doc/errors/403.php
ErrorDocument 500 /cust_err_doc/errors/500.php
However, when adding the following, the server started acting strangely:
Code:
ErrorDocument 301 /cust_err_doc/errors/301.php
ErrorDocument 302 /cust_err_doc/errors/302.php
For example, accessing http://site.tld/folder did NOT work, http://site.tld/folder/ did work, so there was obviously somethign wrong with the 301 code.

Is there a way to do this? Can we have a list of the codes that can be overridden this way?
 
Top