How to Create Branded Custom Error Pages in cPanel

58 views
Short answer: Open cPanel Error Pages, select the target HTTP status code (404, 403, 500), customize the HTML markup to mirror your brand styling, and click 'Save'.

Design branded, helpful custom HTML error pages for 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, and 500 Internal Error.

Quick reference

Tool Location cPanel > Advanced > Error Pages
Supported Status Codes 400, 401, 403, 404, 500
Dynamic Variables ,

Steps

  1. Open Error Pages: In cPanel, navigate to Advanced > Error Pages.
  2. Select Domain & Error Code: Choose your domain from the dropdown and click on the error code you want to customize (e.g., 404 (Not found) or 403 (Forbidden)).
  3. Design the Page: Enter your HTML code. You can insert dynamic variables by clicking the toolbar tags:
    • Referring URL: Shows the page the user came from.
    • Visitor's IP Address: Useful for 403 error pages to assist with troubleshooting.
    • Server Name: Displays your domain name.
  4. Save: Click Save. cPanel creates a 404.shtml file in your public_html and updates .htaccess.

Troubleshooting and tips

  • WordPress Overriding 404 Pages: If WordPress is installed in public_html, WordPress handles 404 errors via its own 404.php theme template. cPanel Error Pages are primarily served for non-WordPress static requests, 403 blocks, and direct file errors.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket
Was this article helpful?
No, I need more help
Didn't find your answer?
Under 3 minutes
Submit Support Ticket