How to Create Custom Error Pages (404 Not Found) in cPanel Print

  • 0

A custom error page (like a personalized 404 Not Found page) is much better than the generic message displayed by your web server. It allows you to maintain **branding**, provide helpful **navigation links**, and keep visitors **engaged** with your website instead of losing them.

This guide demonstrates how to use the Error Pages tool in **cPanel** to easily create a custom 404 page.

 Custom Error Page Steps:

  1. Log into your **cPanel dashboard**.
  2. Scroll down to the **Advanced** section and click the **Error Pages** icon.
  3. Select the **domain** you want to manage from the dropdown menu.
  4. Click on the **error code** you want to customize (e.g., **404 (Not found)**).
  5. In the text editor, you can enter **HTML** or simple text for your custom page. This is where you can add your branded content and helpful links.

    You can also use **Tags to Insert** (like <!-- $CURRENT_URL -->) to provide the visitor with information about the missing page.

    Some useful tags include:

    • <!-- $DOCUMENT_ROOT -->: The document root of your domain.
    • <!-- $REQUEST_URI -->: The URI that the visitor requested.
  6. Click **Save**.

Your new custom error page will now be displayed whenever a visitor encounters that specific HTTP status code, giving you a better way to handle common website errors. ????



Was this answer helpful?

« Back