Custom error pages Print

  • 1

Error pages are determined by the HTTP

You can add custom error pages by logging into cPanel and selecting the the "Error pages" under "Advanced". From you you can add custom error pages in HTML and SHTML form.

You can also have custom error pages by simply modifying the .htaccess file in your account with the following:

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

That would redirect anyone who received a 403 or 404 to /403.html or /404.html.


Example Error Codes (Full list)

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
500 - Internal Server Error
501 - Not Implemented
502 - Bad Gateway 
503 - Service Unavailable
504 - Gateway Timeout505 - HTTP Version Not Supported


Kas see vastus oli kasulik?

« Tagasi

Ready to get started? Build your site from
$2.24/mo
GET STARTED NOW