How to create custom 'error pages' in cPanel

269ac00f765508cb74b25d006dbf5bb2

Written by Dennis Nind

Last published at: February 8th, 2019

An error page informs a visitor when there is a problem accessing your site. Each type of problem has its own code. For example, a visitor who enters a nonexistent URL will see a 404 error, while an unauthorized user trying to access a restricted area of your site will see a 401 error. Basic error pages are automatically provided by the web server (Apache). However, if you prefer, you can create a custom error page for any valid HTTP status code beginning in 4 or 5.

(cPanel >> Home >> Advanced >> Error Pages)

Overview

Error pages inform visitors about problems when they attempt to access your site. Each problem has its own status code (for example, 404) and error page. The web server automatically provides basic error pages, but the Error Pages interface allows you to define custom error pages for any HTTP status code.

Edit an error page

To customize an error page, perform the following steps:
  1. If this account manages more than one domain, select the domain for which you wish to edit an error page from the Managing: menu.
  2. Click the error status code for which you wish to edit its error page.
    • If you do not see the desired error status code in that list, click the Show All HTTP Error Status Codes tab. Then, click on the desired error status code.
  3. Enter a message in the text box.
    • To display information on the error page about the visitor who accessed your site, click the appropriate buttons for the information that you wish to display.
    • Enter additional HTML code to further customize your error pages.
  4. Click Save.