How to Create Custom Error Pages in cPanel InMotion Hosting ContributorUpdated on October 14, 2022 2 Minute Read When a visitor to your site receives an error message, such as 404 (Not found), or 500 (Internal server error); they will see the default error page. You can easily customize these pages in your cPanel with the Error Pages button. For example, you may want to personalize the error message. In this tutorial, we will show you how to create a custom error page in cPanel. Then, we will show you how to add a .htaccess rule, so your custom error pages will load when needed. Creating a Custom Error PageSetup Your .htaccess File Creating a Custom Error Page Login to your cPanel.Click the Error Pages button, in the Advanced section of cPanel.If you have multiple domains in your cPanel, select it from the Managing menu.You will see a list of Common Error Codes, click the one you want to create a custom error page for. The available choices are: 400 (Bad request), 401 (Authorization required), 403 (Forbidden), 404 (Not found), and 500 (Internal server error). To edit additional error codes, click the Show All HTTP Error Status Codes tab. In my tests, I am selecting 404 (Not found)You will then be on an editor page. You can enter HTML code here, or insert premade tags if you want. Below is a brief description of the available tags. Tag Description Referring URL Lists the URL you came from. Visitor’s IP address Lists the IP address of your site visitor. Requested URL Shows the URL you are attempting to access Server Name Shows the name of the server. Visitor’s Browser Lists the visitor’s browser type. Redirect Status Code This will display the error message code, such as 500, or 404, etc. Click the Save button at the bottom when you are finished. Setup Your .htaccess File Edit the .htaccess file for your site, and add a rule for the errors you created. If you need help locating your .htaccess file, see our guide “Where is my .htaccess file?.” Below is an example of the file formatting: ErrorDocument 400 /400.shtmlErrorDocument 401 /401.shtmlErrorDocument 403 /403.shtmlErrorDocument 404 /404.shtmlErrorDocument 500 /500.shtml Save your .htaccess file. Now when someone triggers an error message on your site, it will display your Custom Error Page. Congratulations, now you know how to create custom Error Pages in cPanel! For additional reading, here is a link to the official cPanel documentation on Error Pages. Share this Article IC InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles How to Manage AutoSSL Certificates in cPanel How to Migrate Your Website Using cPanel How to Setup an Email Forwarder in cPanel & Webmail How to Create an Email Account in cPanel An Introduction to Branding cPanel for Your Users How to Modify MX Records Using cPanel Setting Domain MX Records to Remote Settings in cPanel Engrampa Archive Manager for Linux How to Create a New cPanel in your Reseller WHM How to Upload a File With cPanel File Manager