Wesbytes Knowledge Base

Search our articles or browse by category below

How to Create custom error pages in cPanel

Last modified: June 28, 2022
You are here:
Estimated reading time: 1 min

Why Use Custom Error Pages?

The web server will automatically show an error page to display error messages like 404 (Not Found) or 500 when an error occurs on a website (Internal server error). Generic/default error pages have the drawback of being information-poor. Even worse, the user will leave your website as a result of these error pages. This tutorial will demonstrate how to configure unique error pages using cPanel.

How to Create Custom Error Pages in cPanel

    1. Firstly, login to cPanel.
    2. Secondly, click Error Pages under Advanced section. Select the domain for which you will add a custom error page if you have multiple domains in cPanel.
    3. Click one of the error code links to create a page for that specific error.
    4. Then, you will be taken to a page editor. Add page code, header and body tags to customize your page.
    5. Place your cursor inside the <body> tags and click a tag link to insert the variable code.
    6. Lastly, click Save when you’re finished.
Was this article helpful?
Dislike 0
Views: 3