Skip to main content
Hosting How-To

How to add custom error pages – Hosting

By May 21, 2021No Comments

&#13

Error internet pages are displayed when a person enters a improper/outdated URL or when a single is not approved to accessibility a unique listing of your world wide web house. cPanel makes it possible for you to customise the default perspective and change the way the mistake is displayed:&#13
&#13

for cPanel paper_lantern concept
for cPanel x3 theme

for cPanel paper_lantern concept:

1. Log into your cPanel.&#13

2. Navigate to Innovative segment > Error Web pages menu:&#13
&#13
&#13

3. Pick out the area identify in from Managing fall-down menu and click on the error you wish to improve:&#13
&#13
&#13

If you can’t locate the wanted error code in Edit Widespread Mistake Codes tab, swap to Clearly show All HTTP Mistake Position Codes:&#13
&#13

4. After the mistake code is picked, you will be taken to HTML editor that delivers the adhering to tags:&#13
&#13
&#13

&#13

  • &#13
    Requested URL: displays the intended URL the customer is hoping to check out.
  • &#13

  • &#13
    Server identify: shows the web site’s server title.
  • &#13

  • &#13
    Visitor’s browser: shows the visitor’s browser style such as Web Explorer, FireFox, Netscape, etc.
  • &#13

  • &#13
    Redirect Position Code: shows the style of code in the 300-307 variety, to find out far more adhere to this backlink.
  • &#13

    &#13

    Make confident that you Save the variations.&#13
    &#13

    5. After that the .shtml file will be placed to the root listing of your internet site:&#13
    &#13

    6. In buy to connect .shtml to your internet site, you will need to increase the corresponding rule to .htaccess file.&#13
    &#13

    If you are not able to identify .htaccess, help Show Hidden files (dotfiles) solution in Options menu:&#13

    If there is still no .htaccess file in your File manager, come to feel free of charge to generate a new 1 working with File choice:&#13
    &#13

    7. Soon after that appropriate-click on the file and use Edit choice:&#13
    &#13

    Include the pursuing rule:&#13
    &#13

    ErrorDocument 500 /500.shtml

    Note, that mistake code and file identify must be adjusted accordingly. For case in point, if you want to join 404.shtml, the rule need to search like:&#13
    &#13

    ErrorDocument 404 /404.html

    for cPanel x3 theme:

    1. Log into your cPanel.&#13

    2. Navigate to Advanced area > Mistake Internet pages menu:&#13
    &#13
    &#13

    3. Choose the domain title in from Managing fall-down menu and click on the error you want to modify:&#13
    &#13
    &#13

    If you simply cannot discover the essential mistake code in Edit Typical Mistake Codes tab, switch to Exhibit All HTTP Error Standing Codes:&#13
    &#13

    4. After the mistake code is selected, you will be taken to HTML editor that presents the adhering to tags:&#13
    &#13
    &#13

  • Asked for URL: shows the meant URL the customer is making an attempt to check out.
  • Server title: shows the internet site’s server name.
  • Visitor’s browser: shows the visitor’s browser type this sort of as Online Explorer, FireFox, Netscape, etcetera.
  • Redirect Position Code: shows the style of code in the 300-307 assortment, to learn more observe this backlink.
  • Do not overlook to Help save the adjustments.&#13
    &#13

    5. Right after that the .shtml file will be positioned to the root directory of your web-site. &#13
    &#13

    Transfer to File Manager menu in cPanel, choose Document root for possibility and your domain from the fall-down menu. Make guaranteed that Exhibit Concealed Documents (dotfiles) is enabled:&#13
    &#13

    6. In get to hook up .shtml to your web-site, you need to have to incorporate the corresponding rule to .htaccess file.&#13
    &#13

    If you can not locate .htaccess file in your internet site root directory, feel absolutely free to make a new just one employing New File choice:&#13
    &#13

    7. Immediately after that appropriate-click on the file and use Edit solution:&#13
    &#13

    Add the next rule:&#13
    &#13

    ErrorDocument 500 /500.shtml

    Take note, that error code and file identify should be adjusted accordingly. For case in point, if you want to hook up 404.shtml, the rule should seem like:&#13
    &#13

    ErrorDocument 404 /404.html

    Which is it!

                  
                          Have to have any help? Contact our HelpDesk

    Leave a Reply