How Do I Create Custom 403 404 500 Error Pages in cPanel?

Follow

Log into cPanel

+ Under the ' Advanced Section ' Select ' Error Pages '
+ Under ' Error Pages ' select the ' Domain ' or ' Subdomain ' you would like to Modify
+ Add / Edit HTML Code and ' Save '

Apply the Custom Error Pages to Display on Errors

+ Edit ' .htaccess ' and add the Custom Pages you would like to display;

ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml

or Apply an Alternate Page to Display on an Error

ErrorDocument 403 /index.html
ErrorDocument 404 /support.html
ErrorDocument 500 /livechat.html

How can i revert to the Default Error Pages?

+ Remove the Error Page you no longer require from the ' /public_html/ ' folder;

' 404.shtml ' ' 403.shtml ' ' 500.shtml ' etc

--

Custom Codes List;

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

Have more questions? Submit a request

Comments

Powered by Zendesk