There was a problem loading the comments.

How to use Error Pages in cPanel?

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

When something goes wrong while visiting your website β€” like a missing page or unauthorized access β€” the server displays an error page. By default, your web server (Apache) shows generic error messages. However, with cPanel, you can createΒ custom error pages to make them more helpful, branded, or user-friendly.


🚫 Common Error Codes

  • 404 – Page Not Found

  • 401 – Unauthorized Access

  • 403 – Forbidden

  • 500 – Internal Server Error

  • 502 – Bad Gateway

You can customize any valid error code beginning with 4xx or 5xx.


πŸ› οΈ How to Set Up a Custom Error Page in cPanel

  1. Log in to your cPanel account.

  2. Scroll down to the Advanced section.

  3. Click on Error Pages.

  4. From the dropdown menu, select the domain or subdomain for which you want to create or edit error pages.

Β 

  1. Choose the error code you want to customize:

    • Click from the Common Error Codes list (e.g., 404, 403, 500)

    • Or click All HTTP Error Codes to view the full list

  2. An HTML editor will open.
    Enter your custom content for that error page. You can include text, images, and even use predefined tags (click on them to insert into your page).

    Example:

    <h1>Oops! Page Not Found (404)</h1>
    <p>We're sorry, but the page you were looking for doesn't exist.</p>
    <a href="/">Return to homepage</a>
    
  3. Click Save to apply your custom error page.


πŸ“ Tips

  • Custom error pages improve user experience and help with branding.

  • Use friendly language and links to guide users back to working parts of your site.

  • You can preview your error pages by manually visiting a broken or restricted link on your domain.


Share via
Did you find this article useful?  

Related Articles

Tags

© Softsys Hosting