Tsohost Knowledge Base

How to create a custom error page in cPanel

Modified Tuesday 15th April, 2014 at 05:04

Was this helpful?

You have 2 options for setting a custom error page.

 Option 1

Use the "error pages" icon in cPanel

Option 2 (manual)

To accomplish this, create a file called .htaccess in the same directory as the script. The filename must be exact and most text editors will allow you to save a file with this filename. If you already have a .htaccess file, you can edit it. Either way, add the line:

Code:

ErrorDocument 404 /my_404.html

The URL is relative to your website root (for instance my example would display http://www.my-domain.com/my_404.html. You can replace 404 with whatever HTTP status code you want to display the custom error page for.


customerrorpagecpanel

Still can't find what you're looking for?

Not a problem - our 24/7 customer support team are super friendly and here to help answer all your questions. There's no need to wait, click below to start a Live Chat.

Start Live Chat

Still can't find what you're looking for?

Not a problem - our 24/7 customer support team are super friendly and here to help answer all your questions. Don't delay, click below to find out how you can get in touch.

Get in Touch