Custom error pages Print

  • 0

Custom error pages are already pre-setup in your account. You may modify these pages as you like, but the name and location MUST remain the same.

The page 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 code http://domain/page.shtml

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


Was this answer helpful?

« Back