Custom error pages (404, 403, 500) in cPanel

When a visitor opens an address that does not exist, the web server shows a standard "404 Not Found" page. You can replace it with your own - with your logo and a link to the home page.

  1. Open "Error Pages" (group "Advanced").
  2. In "Managing", choose the domain.
  3. Click the error you need, for example "404 (Not found)".
Choosing the domain and error code
Choosing the domain and error code
  1. Paste the page HTML. The links above the editor insert tags: requested URL, visitor IP, browser.
  2. Click "Save".
Error page editor
Error page editor

A simple page example:

<!DOCTYPE html>
<html lang="en"><head><meta charset="utf-8"><title>Page not found</title></head>
<body style="font-family:sans-serif;text-align:center;padding:60px">
<h1>Page not found</h1>
<p><a href="/">Go to the home page</a></p>
</body></html>

The panel saves the page as 404.shtml in the site folder.

WordPress, Joomla and other CMS show their own 404 page - it is changed in the site theme. This setting is for HTML sites and for addresses the CMS does not handle.

Questions and answers
WordPress shows its own 404 page from the site theme. Change it in the theme.