Introduction
The Error Pages feature in cPanel lets you create and customize the error messages shown to visitors when something goes wrong — such as when a page is missing, access is denied, or the server is unavailable. Instead of displaying a generic, unbranded message, you can show a helpful or branded HTML page tailored to your site.
This article explains how to customize common HTTP error pages using cPanel.
What Are Error Pages?
Error pages are shown when a visitor encounters specific issues on your site. The most common types include:
Code | Meaning |
---|---|
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
By default, web servers display plain, unstyled versions of these pages. Using cPanel, you can replace them with your own design.
How to Access Error Pages in cPanel
-
Log in to your cPanel account
-
Scroll to the Advanced section
-
Click on Error Pages
-
Choose the domain (if you have more than one)
How to Customize an Error Page
-
After selecting your domain, click on the error code (e.g., 404) you want to customize
-
Enter your HTML code in the editor provided
-
You can include text, images, links, or full HTML templates
-
Use special tags like:
-
<!--#echo var="REQUEST_URI" -->
– displays the requested URL -
<!--#echo var="HTTP_REFERER" -->
– shows the referring page
-
-
-
Click Save
Your custom error page will now be shown whenever someone encounters that specific error on your site.
Tips for Creating Helpful Error Pages
-
Include a friendly message (e.g., “Oops! This page couldn’t be found.”)
-
Add a link back to the homepage or a search bar
-
Keep the design consistent with the rest of your website
-
Use light humor or brand language to maintain tone
-
Include contact details or a support link for help
Restoring Default Error Pages
If you ever want to remove a custom error page:
-
Go back to the Error Pages tool
-
Click the error code
-
Remove your HTML code and click Save — this will revert to the default system page
Conclusion
The Error Pages feature in cPanel helps you turn negative experiences like “Page Not Found” into brand-consistent and helpful interactions. By customizing these pages, you can keep visitors engaged, reduce bounce rates, and add a more professional touch to your website.