Creating a Custom 404 Error Page Updated on August 16, 2021 by Scott Mitchell 1 Minutes, 46 Seconds to Read In this article, we’ll discuss how you can set up a custom 404 error page for your website. This will allow you to control exactly what message is displayed to your visitors when they try to request a page that doesn’t exist. If you read our previous article on 404 error not found pages, you should have a good understanding of why creating a custom 404 error page can be helpful. You can simply upload a file such as 404.html to your website via FTP, or if you prefer you can follow the instructions below for creating this file in cPanel via the File Manager. Login to your cPanel. Under the Files section, click on File Manager. Click on public_html. From the top left-hand menu, click on New File. Under New File Name: type in 404.html then click Create New File. Right-click on the newly created 404.html then click on Edit. In the Text Editor pop-up, simply click on Edit. Now you’d want to type in the HTML code for your custom 404 page, in this example we’re using a very basic one that you can copy if you’d like. However you can get very fancy with your own, even going so far as to copying the style and images of your main site and placing your error message in the middle of that. We’re sorry but the page you’re looking for could not be found After you’ve made your edits, click on Save Changes, and you should see a green Success pop-up. Now if you directly try to pull up /404.html in your web-browser, you should see the page we just created. Now that you’ve learned how to create a custom 404 error page to handle your 404 errors, you’ll also more than likely want to learn about setting a 404 error page via .htaccess. This way any requests for non-existent pages will go directly to your custom static 404 error page that you just created. You can get even more advanced with your 404 error page by using Google’s custom 404-page widget. This can help provide relevant content from your site to visitors from a Google search against your website. Share this Article Related Articles How to Fix the Insecure SSL Error due to SHA-1 Deprecation How to Fix the “550 No Such User Here” Email Error Email Error – Mailbox Quota Exceeded Resolving DNS_PROBE_FINISHED_NXDOMAIN Errors How to Fix the Allowed Memory Size Exhausted Error How to Set a Custom 404 Page Using .htaccess MySQL 1064 Error: You have an error in your SQL syntax Chrome error: ERR_TOO_MANY_REDIRECTS Create a 503 Status Code for your Site I get a 404 error when I access cPanel
I recommend setting your custom 404 page using the .htaccess file. You can create a new .htaccess file in the subdirectory/subfolder and point to the custom page. Thank you, John-Paul
Hello Digambar, Can you please provide what modifications you are trying to perform? Also are you using Apache as your web server service? Best Regards, TJ Edens