How to create custom error pages Print

  • 11

An error page informs a visitor when there is a problem accessing your site. Each type of problem has its own error 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. If there has been an error with your script you may see a 500 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**.

1. Login to your cPanel account
2. Look for the error pages icon
3. Select the domain using the dropdrop
4. Click on the error code that you would like to customise
5. Add your custom error message or paste in your pre-made HTML code
6. Press save

You will need to repeat the above steps for each error page you wish to customise.

Any error pages you do not overwrite with a custom page, will serve the standard error page provided by the server.


Was this answer helpful?

« Back