WebGee DocsDocs
cPanel & Hosting
Free migration + 30-day money-backSee how

Create custom error pages

Replace the default Apache error pages with your own for 404, 403, 500 and any other status code.

Show your own page instead of the bare Apache default when something goes wrong. Applies to shared, reseller and Premium hosting.

The default pages are stark and carry no navigation, so a visitor who hits a broken link usually leaves. A 404 with a search box and a link home does not cost you the visit.

Create one

  1. In cPanel, open Error Pages under Advanced.
  2. If your account has several domains, choose one from the Managing menu.
  3. Select the status code — or Show All HTTP Error Status Codes for anything not listed.
  4. Enter your content. Plain HTML works.
  5. Save.

The buttons above the editor insert visitor-specific values such as the requested URL or the referring page.

The ones worth doing

CodeWhen it appears
404Page not found. Much the most common — do this one first
403Forbidden. Permissions, or a firewall rule
500Server error, usually an application fault
401Authentication required

A 404 page should include a link to your homepage, a search box if you have one, and no dead ends. Avoid making it look like a working page — a visitor should understand immediately that what they wanted is not here.

WordPress and other applications

These pages apply to errors handled by the web server. WordPress serves its own 404 through its theme for any URL that reaches it, so your cPanel 404 will rarely be shown on a WordPress site — edit 404.php in your theme instead.

The cPanel version still matters for requests WordPress never sees, such as a missing file directly under a subdirectory.

Check it worked

Request a page that does not exist:

curl -sI https://example.com/this-does-not-exist | head -n 1

You want 404, then check in a browser that your page is what appears.

The status code must stay correct. An error page returning 200 OK tells search engines the missing page exists, and they will index it — a "soft 404", which is worse than a plain error page.

On this page

Hosted elsewhere?

Cloud Hosting

cPanel on NVMe storage, with LiteSpeed, free SSL and daily backups included.

See plansFree migration