Custom error pages

To create a custom error page for your account, please login to cPanel and click Error Pages, under Advanced. Select the domain or subdomain you want and click the page you want to edit. Insert your own custom page code (in HTML or SHTML). The changes will be applied after you click Save.

But I don't know any HTML

Never fear. If you use a design program like Sitebuilder, simply publish a page which you would want to use. Next, visit your website online and pull up that new page you want. At the top of your browser, go to View and choose "Source" or "Page Source". Copy everything from the pop-up window (right click, Select All, right click, Copy) and now you can paste where the HTML code belongs.

Afterward, you may want to remove that extra page from your site builder program.


Common problems

If Internet Explorer is not displaying the custom error page, it is likely because the error page must be larger than 1 kilobyte.

If you are still seeing the HostGator error pages, try refreshing your browser (ctrl + F5). If you still see the HostGator pages, please contact us via phone, live chat, or email support@hostgator.com and tell us your domain name.

(One reason you may need to call us, is because you are using a design which is looking for specific error pages. This is usually coded in your .htaccess file.)

There are many error pages which may be defined.

Client Request Errors
400 - Bad Request
401 - Authorization Required
403 - Forbidden
404 - Not Found
405 - Method Not Allowed
406 - Not Acceptable (encoding)
407 - Proxy Authentication Required
408 - Request Timed Out
409 - Conflicting Request
410 - Gone
411 - Content Length Required
412 - Precondition Failed
413 - Request Entity Too Long
414 - Request URI Too Long
415 - Unsupported Media Type

Server Errors
500 - Internal Server Error
501 - Not Implemented
502 - Bad Gateway
503 - Service Unavailable
504 - Gateway Timeout
505 - HTTP Version Not Supported


How can I revert back to the default error pages?

 

Simply delete the error page from the public_html folder:
404.shtml
403.shtml
500.shtml

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

READ THIS BEFORE SETTING UP A SUBDOMAIN!

To create a subdomain, cPanel asks for the name you wish to use. MAKE SURE the subdomain name you...

READ THIS BEFORE SETTING UP AN ADDON DOMAIN!

Before you can add an addon domain you must change the name servers for the domain name to the...

What is the difference between shared SSL and private SSL?

A shared SSL displays as https://ip/~yourusername/. A private SSL would display as...

Apache mod_rewrite and examples

What is mod_rewrite? Mod Rewrite allows you to change the URL that everyone sees when they...

Backup policy, Do you provide backups?

You are responsible for your backups and web content. We create our own weekly backups on the...