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.

cPanel is easy to work with when you have the right host to support you. If you need a reliable partner to help you manage your website with cPanel, check out our cPanel hosting services!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to disable SuperCacher for wildcard subdomains

When you have a wildcard subdomain setup and you need to disable SuperCacher for a specific...

How to Import Existing SSH Key in WHM

In this article we will show you how to add an existing key to WHm in order to access your...

How to access WHM on a Cloud VPS?

All customers on a hostlantern website package can access their WHM (Web Host Manager) interface...

How to restore files/folders using the Files Backup Restore tool in cPanel?

Clients with the Daily Backup upgrade can restore files and folders from their daily backups via...

Using international (non-Latin) domain names in cPanel

If the domain name that you are trying to use in cPanel as a parked or an addon contains...

Powered by WHMCompleteSolution