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:
Manually Create Custom Error PagesEver 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 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. | |
|