Error pages

This document contains information on creating custom error pages from cPanel, so that visitors see a clear message with your site's aesthetic when something fails.

When a visitor enters an address that does not exist or the server cannot display a page, an error page appears. The server already includes basic pages, but with the Error Pages tool you can replace them with your own, featuring a friendly message, your logo, and your site's links.

Access: log in to cPanel from the client area → Log in to cPanel, or at https://yourdomain.com/cpanel. Then open Advanced → Error Pages.

Most common errors

  • 400 – Bad Request: the server did not understand the request.
  • 401 – Authorization Required: the page asks for a username and password, for example in a protected directory.
  • 403 – Forbidden: the visitor does not have permission to view that content.
  • 404 – Not Found: the page does not exist. This is the most common one and the one most worth customizing.
  • 500 – Internal Server Error: something failed on the server or in the site code.

Customizing an error page

  1. If the account has multiple domains, choose the domain in the Managing menu.
  2. Click on the error code you want to edit. If it does not appear, open the Show All HTTP Error Status Codes tab.
  3. Type the message or paste the HTML code of the page. You can use the buttons at the top to insert visitor data, such as the URL they requested, the page they came from, or their IP.
  4. Click Save.

For the page to look like the rest of the site, use full paths for images and styles, for example https://yourdomain.com/img/logo.png, and include a link to the homepage.

Important: if your site uses a content management system like WordPress or Joomla, the system itself displays its own 404 page and the cPanel one will not be seen. In that case, customize it from the site template or theme.

Frequent issues

  • The server error page still appears: check that you edited the correct domain in the Managing menu and reload without cache using Ctrl + F5.
  • The error page appears without styles or without images: change relative paths to full paths starting with https://yourdomain.com/.
  • A 500 error appears on the entire site: the custom page is not the cause. Check recent changes in the site code or open a ticket.

If you need help, open a ticket from the client area or inquire through the site's online chat.

  • 9 Users Found This Useful
Was this answer helpful?

Related Articles

How to send information from forms - FormMail

This article explains how to send form data to an email on your domain using FormMail Clone, the...

PHP Scripts - Activating PHP support for the service.

This document contains information on how to choose or change the PHP version for each domain...

I cannot view the images on my cPanel services subdomain

This document contains information to resolve the issue of images not displaying on a subdomain...

DomainKeys and SPF - Prevent identity spoofing.

This document contains information to protect your domain against identity spoofing, configuring...

DomainKeys for sending email

This document contains information to verify and activate DKIM, SPF, and DMARC on your domain...