When a visitor hits a missing page, the server shows a plain "404 Not Found" message that looks nothing like your website. A custom error page keeps your branding and helps people find their way back. This guide shows you how to create a custom 404 page and other error pages for your Instant Access Internet Services website with cPanel's Error Pages tool, and how to use your own HTML page instead.
Which error pages matter?
| Code | Name | When visitors see it |
|---|---|---|
| 404 | Not Found | The page doesn't exist - a broken link or mistyped address. This is the one worth customising. |
| 403 | Forbidden | Access to a file or folder isn't allowed. |
| 401 | Unauthorized | Someone cancelled or failed a password prompt (see How to Password-Protect a Folder with cPanel Directory Privacy). |
| 500 | Internal Server Error | Something went wrong on the server, often a script or .htaccess error. |
Using WordPress? Read this first
WordPress handles its own "page not found" errors, so a 404 page made in cPanel won't appear on a WordPress site. Instead, edit your theme's 404 template or use your theme's or page builder's 404 page setting. The cPanel error pages still apply to non-WordPress folders and to errors that happen before WordPress loads.
How to create a custom error page in cPanel
- In cPanel, go to Advanced > Error Pages.
- If you have subdomains, choose the right one from the Managing menu. Otherwise your main domain is already selected.
- Click the error code you want to customise, for example 404 (Not Found). If it isn't in the list, click the Show All HTTP Error Status Codes tab first.
- Type your page content in the editor. You can use plain text or HTML - for example a heading, a short apology, a link back to your home page and your contact details.
- Optionally, click the buttons above the editor to insert details about the visit, such as the requested address or the visitor's IP address. These are added as special tags that the server fills in.
- Click Save.
Test it by visiting a page that doesn't exist, such as https://example.com/this-page-does-not-exist.
A simple 404 page example
<h1>Sorry, we can't find that page</h1> <p>The page you're looking for may have moved or no longer exists.</p> <p><a href="/">Go to our home page</a> or <a href="/contact">contact us</a>.</p>
To match your site's design, copy the HTML of one of your existing pages, replace the main content with your error message, and paste the whole thing into the editor.
Where the error pages are stored
cPanel saves each page in the domain's document root with a name like 404.shtml. You can open and edit these files later in File Manager (see How to Edit a File in cPanel File Manager). Deleting the file sends visitors back to the server's default error page.
Alternative: use your own page with .htaccess
If you already have a designed page, such as notfound.html, you can point the server at it with one line in public_html/.htaccess:
ErrorDocument 404 /notfound.html
Use a path starting with / rather than a full https:// address - a full address makes the server send a redirect instead of a proper 404 status, which search engines treat as a normal page. See How to Show Hidden Files (.htaccess) in cPanel File Manager to find .htaccess.
Troubleshooting
My custom 404 page isn't showing
Check that you edited the page for the right domain or subdomain in the Managing menu. Then clear your browser cache. On WordPress, see the note above. If an ErrorDocument line in .htaccess points to a different page, that line wins.
My 500 error page doesn't show when the site breaks
Many 500 errors happen inside PHP or in a broken .htaccess file, before a custom page can load. Fix the underlying error instead - your error log will show what's wrong (see How to Check Your Website Error Log and Recent Visitors and How to Fix the WordPress White Screen and 500 Errors).
Images and styles are missing on my error page
Error pages can appear at any address on your site, so relative links like images/logo.png break. Use paths that start with /, such as /images/logo.png.
Should I redirect all 404s to my home page?
It's better not to. Search engines treat that as a "soft 404". Show a helpful 404 page, and set up 301 redirects only for specific old pages that moved - see How to Set Up a 301 Redirect in cPanel.
Related guides
- How to Set Up a 301 Redirect in cPanel
- How to Edit a File in cPanel File Manager
- How to Show Hidden Files (.htaccess) in cPanel File Manager
- How to Check Your Website Error Log and Recent Visitors
- How to Turn Directory Listings On or Off in cPanel (Indexes)
Still stuck? Open a support ticket and the Instant Access Internet Services team will help.
