When a visitor accesses your website, the Web Server can return different errors triggered by the website or the web server itself. Take for example the case when a visitor access a non-existing page on your website. The Web Server will be unable to find that page so it will return 404 error code to the visitor. Depending on the triggered error the code can be different. Here are some of the most common error codes sent by the Web Server:
Every one of these status codes is displaying a different error page including some in most cases insufficient information about the cause of the issue. To provide more detailed explanation or to change the design of these pages cPanel provides you with a feature called "Error Pages". Using this feature you will be able to set a custom design and code for each of the error codes displayed by the Web Server. In the next lines of this tutorial, we will review in detail the "Error Pages" feature of cPanel.
To be able to access the "Error Pages" feature you will first have to access and login to the cPanel service for your Web Hosting Account. Once logged in, you should see a complete list of all the features cPanel has to offer. To find the "Error Pages" features you should either use the search tool provided at the top of the page or you can locate the "Advanced" features group and within that group, you will find the "Error Pages" feature.
Clicking on the feature will take you to the default page of the same where you will find a detailed explanation of what this feature is and also the tools you will need to edit the Error Pages for your websites.
Now that you are in the right place, let's review the process of editing an Error Page. On the default page for the "Error Pages" feature, you will see two sections or steps as cPanel named those.
Basically, since the error pages are the same error codes no matter the domain/subdomain, cPanel wants you to select a domain for which you will be editing the Error Pages. Once the domain is selected, you will have to pick an error code to edit the page for.
Once you click on a certain error code, cPanel will redirect you to a brand new page with a code editor where you will be able to set the code of the Error Page you are editing.
At the top of the page, you will notice that there are a few tags you can choose from. These tags are internal for cPanel and you can use those to display different type of information:
Inserting a tag in the code of the Error Page is relatively simple - you just have to click on the chosen tag and it will be inserted as a code in the code editor positioned right below these tags.
When you are ready with the page edits, please scroll down to the bottom of the page and click on the "Save" button so the changes can be saved.
Simeon is an experienced System Administrator with over 10 years of experience in the Web Hosting field. He is recognized unanimously as the man behind every technical innovation or improvement that HostArmada introduces. Adaptable and responsible, he solves every technical issue that we or our clients throw at him. Every so often you will find him publishing technical content on our website.