When your website is encountering an issue, it displays an error page to inform visitors of the problem. By default, they will see the error page set by your Hosting provider. This can be customised easily in your cPanel, so you can personalise error messages.
Below, we will guide you through creating custom error pages. Then, we will guide through adding .htaccess rule, in case your customised error page does not show.
How to create custom Error Pages
Follow the steps below to create custom error pages.
- Click Sign Up / Log In at the top of this page.
- Select Hosting Manager from the drop-down menu.
- Enter username and password and click Log In.
- On the Home page, click Advanced or the [ v ] arrow symbol on the right side, then click Error Pages.
- Under Step 1 - Select Domain to Manage Error Pages, choose the domain you would want to manage by clicking the [ v ] arrow button located under Managing.
- Under Step 2 - Select Page, click Show All tab.
- Click on the error pages you want to customise.
- An editor will open on the next screen. Enter custom page code (e.g. HTML) or insert tags if you want. See table below for a brief description of available tags:
||Lists the previous URL
Visitor’s IP Address
||Lists IP address of visitor
||Shows URL you tried to access
||Shows server's name
||List of browser type of visitors
Redirect Status Code
||Display error message codes
- Click Save.
How to setup .htaccess rule
If you are seeing Crazy Domains pages as your Error Pages, add an .htaccess rule. Follow the steps below:
- Access .htaccess file.
- On the cPanel File Manager, look for .htaccess file.
- Click .htaccess file, then select Code Editor button at the upper part of the page.
You may also right click .htaccess, then select Code Edit.
- Add the following code to your .htaccess file and change the error number to the ones you customise:
ErrorDocument 411 /411.shtml
ErrorDocument 412 /412.shtml
ErrorDocument 505 /505.shtml
You can use existing pages as your resulting page in case you don’t want visitors seeing error pages. Just change the code after the slash ( / ) on the code above. In the example below, your home page will display whenever there is 505 Error.
ErrorDocument 505 /index.html
- Click Save Changes.
Congratulations! You just customised your error pages.
Fantastic...Thank you for your feedback =)
Sorry... Please submit a support ticket or try another search.