Knowledgebase: Web Hosting > cPanel
Custom error pages
Posted by Cody R., Last modified by Brian F. on 29 September 2010 10:48 AM
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

(77 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).