Knowledgebase: Website Hosting
Custom Error Pages
Posted by Rupi Singh, Last modified by Rupi Singh on 07 June 2010 10:08 AM
You can also watch flash tutorial related to this article.

To create a custom error page for your account, please login to cPanel and click Error Pages, under Advanced. Select the domain or subdomain you want and click the page you want to edit. Insert your own custom page code (in HTML or SHTML). The changes will be applied after you click Save.

With this tool you can create custom error pages to display when a user enters a wrong URL, an outdated URL or when the user is not authorized to access a specific directory of your web space. You can setup a custom error web page for:

400 (Bad request)
401 (Authorization required)
403 (Forbidden)
404 (Wrong page)
500 (Internal server error)

Please Note: If you are still seeing the FastWebHost error pages, try refreshing your browser (ctrl + F5).

Manually Create Custom Error Pages

Ever check out some of those customized error pages and wonder how it could be done? The process if fairly easy and the magic can be worked with just a little editing to your .htaccess file in the public_html directory.

   ErrorDocument 400 /400.html
ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html

This tells the server to look inside the “errors” folder and that specific page for each of the different error types.

You can even use existing pages as the resulting page. If you don't want any visitors seeing 404 errors on your site. You can make your home page the result by doing this: 

   ErrorDocument 404 /index.html

Please Note: You will need to add the code manually to the .htaccess file, for subdomains and addon domains.

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