To add a custom
To add a custom 400 (Bad request), 401 (Authorization required), 403 (Forbidden), 404 (Not found), or 500 (Internal server error) to your website hosted on cPanel, you can follow these steps:
- Log in to cPanel: Log in to your cPanel account using your username and password. You can usually access cPanel by going to
https://yourdomain.com/cpanel
and entering your login credentials. - Navigate to the “Error Pages” Section:
- In cPanel, look for the “Advanced” or “Advanced” section. The name may vary depending on your cPanel theme.
- Select “Error Pages”:
- Inside the “Advanced” section, you should find an option called “Error Pages.” Click on it.
- Choose the Domain:
- If you have multiple domains or subdomains hosted on your cPanel account, select the one for which you want to set up a custom 404 error page from the dropdown menu.
- Select “404 (Not Found)”:
- Under the “Common Error Codes” section, you’ll typically find “404 (Not Found).” Click on it to set up a custom error page for 404 errors.
- Edit the Error Page:
- You’ll be taken to a page where you can customize the 404 error page. You can either:
- Edit the HTML directly in the provided text box.
- Upload a custom HTML file that serves as your 404 error page.
- You’ll be taken to a page where you can customize the 404 error page. You can either:
- Save Changes:
- After customizing your 404 error page, make sure to save your changes. Look for a “Save” or “Save Changes” button on the page.
- Test the Custom 404 Page:
- To ensure that your custom 404 error page is working correctly, try accessing a non-existent page on your website (e.g.,
https://yourdomain.com/nonexistentpage
) in a web browser. You should see your custom 404 error page displayed.
- To ensure that your custom 404 error page is working correctly, try accessing a non-existent page on your website (e.g.,
That’s it! You’ve successfully added a custom 404 error page to your website hosted on cPanel. Visitors who encounter a “Page Not Found” error will now see your custom error page with your chosen content and design.
Share Your Comments & Feedback