Sign Up / Log In
Need help?
1300 210 210
We're Australian!
#1 for domains & hosting
94% customer satisfaction
Trusted by over 1 million businesses
Expert, 24/7 customer support
90% of issues resolved within a day
Best value
We price match*
Online Support Web Hosting

How to create custom Error Pages

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.

  1. Click Sign Up / Log In at the top of this page.
  2. Select Hosting Manager from the drop-down menu.
  3. Enter username and password and click Log In.
  4. On the Home page, click Advanced or the [ v ] arrow symbol on the right side, then click Error Pages.
  5. 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.
  6. Under Step 2 - Select Page, click Show All tab.
  7. Click on the error pages you want to customise.
  8. 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:
    Referring URL Lists the previous URL
    Visitor’s IP Address Lists IP address of visitor
    Requested URL Shows URL you tried to access
    Server Name Shows server's name
    Visitor's Browser List of browser type of visitors
    Redirect Status Code Display error message codes
  9. 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:

  1. Access .htaccess file.
  2. On the cPanel File Manager, look for .htaccess file.
  3. 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.
  4. 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
  5. Click Save Changes.

Congratulations! You just customised your error pages.

Was this helpful? Yes No 82% of people found this helpful.
we're
online
Need Help? Chat Now