Creating an Error Page Print

  • #cpanel
  • 2

 Creating an Error Page (Cpanel)

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.

Common Problem: Incase You may not be able to see your customized error page & are seeing the default error page than please try refreshing your browser.

Tip: If you wish to show your visitors your site's home page instead of seeing the "404 error page: you can put the following code in your .htaccess

ErrorDocument 404 /index.html

*Change the / onwards to where you want your visitor to be taken to.

Error Pages Types

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

Reverting Back to Default Error Page (Cpanel)

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


Was this answer helpful?

« Back

Powered by WHMCompleteSolution