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.

CodeDescription
400Bad Request
401Authorization Required
403Forbidden
404Not Found
405Method Not Allowed
406Not Acceptable (encoding)
407Proxy Authentication Required
408Request Timed Out
409Conflicting Request
410Gone
411Content Length Required
412Precondition Failed
413Request Entity Too Large
414Request URI Too Long
415Unsupported Media Type
500Internal Server Error
501Not Implemented
502Bad Gateway
503Service Unavailable
504Gateway Timeout
505HTTP Version Not Supported