Custom error pages

To create a custom error page for your account you will need to upload a file with the appropriate file name to the account.

This will be named according to the HTTP error code the page corresponds to. To create a custom page for 404 errors you would upload a page named 404.shtml. For a 403 error it will be named 403.shtml

The server will automatically recognize the custom error pages for the primary domain name on your account if the file is named with a .shtml extension.

Setting a custom error page from the cpanel or by manually editing the .htaccess file for the root domain will apply that error page for all domains on the account. To create separate custom error pages for an addon or sub-domain you will need to create a .htaccess file in the addon or sub-domains folder with an 'ErrorDocument' command. The format for the command is:

ErrorDocument *Error Code* http://domain/page
^Be sure you replace *Error Code* with the specific error code you are referring to. For example if you are creating a 404 page you will need to replace *Error Code* with just 404

For an addon or subdomain the error page path must be a fully qualified URL.

You can use the ErrorDocument command to redirect page errors to a file name with an extension other than .shtm.

Was this answer helpful?

 Print this Article

Also Read

What is Fantastico?

Fantastico De Luxe is the leading auto installer for cPanel servers. With more than 10,000...

What happened to the search engine submittal that was in cpanel?

It was removed by cPanel because all search engines submittal is a scam. The search engines want...

Do you have a manual for our control panel?

Yes, a manual for our control panel, cPanel is available. Go to http://www.cpanel.net/docs.htm to...

Where do I go to login to my hosting control panel-cpanel?

  There are two ways you can login to your hosting control panel / cpanel. 1) You can...

How to Recover or Change Your cPanel Password for Linux Hosting Services

If you've found yourself locked out of your cPanel due to a forgotten password, fear not! Here's...

Powered by WHMCompleteSolution