Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

How to set up custom error pages in WHM

Show visitors a friendly page instead of a plain error message.

WHM2 min read14 steps7 screenshots

What is an error page?

When a visitor asks for a page that does not exist, the server answers with an error. The best-known one is 404 Not Found. Another is 500 Internal Server Error, which means something broke on the server. The default page is plain and can confuse people. A custom error page is your own page that says what happened and helps people find their way back.

WHM is the control panel for server owners. It can set default error pages for all accounts. This guide needs WHM access.

Screenshot: WHM is the control panel for server owners. It can set default error pages for all account

Steps

  1. Log in to WHM.
  2. Search for Web Template Editor.
  3. Click Web Template Editor.
  4. In the list, find the error page you want, such as Default Website Page or the 404 page.
  5. Click the radio button next to it.
    Screenshot: Click the radio button next to it.
  6. Click Edit.
  7. Change the text in the editor. Keep it simple, such as "Sorry, we could not find that page."
  8. Click Save.
Tip: Take a copy of the original text first. Paste it into a text file so you can go back later.

What to put on the page

  • A clear, polite message.
  • A link to the home page.
  • A way to contact you.
  • No technical jargon.

Let each website owner make their own

A single website owner can create pages for their own site in cPanel.

  1. Log in to cPanel.
  2. In the Advanced section, click Error Pages.
    Screenshot: In the Advanced section, click Error Pages .
  3. Choose the domain.
    Screenshot: Choose the domain.
  4. Pick the error code, like 404 (Not Found).
  5. Type your message in the box. You may use HTML tags.
  6. Click Save.

cPanel makes a file in public_html, such as 404.shtml. If your site uses a CMS like WordPress, the CMS may show its own error page instead.

Menu names can differ in different WHM versions. Use the search box if you cannot find an item.

Quick recap

  • Error pages show when something goes wrong, like 404.
  • WHM sets defaults through Web Template Editor.
    Screenshot: WHM sets defaults through Web Template Editor .
    Screenshot: WHM sets defaults through Web Template Editor .
  • cPanel users can use Error Pages for their own site.
  • Keep the message simple and add a link home.
  • Save a copy of the old text first.
    Screenshot: Save a copy of the old text first.