A custom error page explains a problem to visitors and can help them return to a working page. This guide shows how to edit a website’s error pages in cPanel, using a 404 page as an example.

Create the error page

  1. Log in to cPanel and open Advanced > Error Pages.

  2. Select the correct domain from the domain menu.

  3. Select 404 (Not Found), or another status code you need to customise. Use Show All HTTP Error Status Codes if it is not listed.

  4. Enter the page content. For example:

    <h1>Page not found</h1>
    <p>The page you requested is not available.</p>
    <p><a href="/">Return to the home page</a></p>
  5. Click Save.

error pages

Test the result

Visit a deliberately nonexistent address on that domain and check the response in your browser’s developer tools. It should display the intended page and keep the appropriate error status, such as 404.

An application such as WordPress may handle missing pages itself, so its error page may appear instead of the server-level page configured in cPanel.