Knowledge Base Article

My 403 custom error page is not working

If you have set a 403 custom error page and you have "deny from all" rules in your .htaccess file, access to the 403 custom error page will also be denied.

 

The easiest way to resolve this issue is to allow access only to the 403 custom error page.

 

So, if you have the following rule defining your 403 error page:

  

ErrorDocument 403 /~cpanel_username/403.html

 

you should add the following rule to your .htaccess file:


<Files 403.html>
allow from all
</Files>

 

in order to allow access to the 403 error page.



Rating

Please indicate if this article was helpful for you.

rating :  4.6 from 5
views :  1647
votes :  12

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!