Skip to content

Custom error pages

You can customize the error pages displayed to visitors when HTTP errors occur (such as 404 Not Found or 500 Internal Server Error).

  1. Log in to cPanel and search for Error Pages (listed under Advanced).
  2. Select the domain you want to configure.
  3. Click the error code you want to customize.
  4. Edit the HTML/SHTML content and save.

Add ErrorDocument directives to your site’s .htaccess file:

ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html

This directs visitors who encounter those errors to the specified HTML files in your document root.

Code Description
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 Large
414 Request URI Too Long
415 Unsupported Media Type
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported