How to customize Error Pages in cPanel

By Jonathan Griffin. Editor, SEO Consultant, & Developer.

· 4 min read

An error page displays to visitors when they try to access a web page that has a problem. Each type of problem has its own status code. For example, 404 is the code for “Not Found” and shows when the webserver can’t find the page requested.

By default, cPanel creates error pages for the most common errors for any domains on the account. These include:

  • 400 - Bad Request - The server cannot handle the visitor’s request because it is corrupt or unable to understand it. 401 - Unauthorized - This status code means that the user cannot access the page without completing the authentication process. Typically this page is displayed to visitors who cannot complete the Password Protection of a web directory.
  • 403 - Forbidden - Access to the requested web page by the visitor is forbidden. This can be caused by file or folder permissions or specific rules set in the .htaccess file. For example, “deny from IP address”.
  • 404 - Not Found - The requested page cannot be found. A typical reason for this error code is a non-existent page or improperly rewritten(Mod Rewrite) - request.
  • 500 - Internal Server Error - Something with the communication between your website and the Web Server went wrong. Typically this can be caused by - **incorrect permissions set for the files and folders of your website or if the website is producing some error when the Web Server is executing the website’s code.

Notice

Custom error pages are optional. If there is no custom page for a particular error code, your server will display a default error page.

However, for 404 - Not Found errors, for example, it can be helpful to display popular links or a link to your search page.

This tutorial will show you how to edit the most common error pages or create new ones for any error type.

How to customize Error Pages in cPanel

Customizing your cPanel Error pages is relatively simple. You can take advantage of the error page builder to insert snippets, such as Referring URL, Visitors IP, Server name, Browser, and more.

You can add or customize pages for any error code beginning with 4 or 5.

Troubleshooting \ FAQ’s

What should you include on your custom `404` page?

Google provides some suggestions to keep your users on your site:

  • Tell your users that the page cannot be found. Use “friendly and inviting” language.
  • Make your 404 page have the same look and feel as your main site. Include the same navigation elements.
  • Consider adding links to your most popular articles and home page.
  • Think about ways for your users to report a broken link.
  • Do not include your 404 page in Google’s search results by ensuring it returns an actual 404 HTTP status code.