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.
- Open "Error Pages" (group "Advanced").
- In "Managing", choose the domain.
- Click the error you need, for example "404 (Not found)".

- Paste the page HTML. The links above the editor insert tags: requested URL, visitor IP, browser.
- Click "Save".

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.