Creating a 404 error page for OpenCart Updated on December 22, 2023 by Carrie Smaha 1 Minutes, 4 Seconds to Read Creating a custom page for 404 errors in OpenCart can help you secure your shopping cart. Anyone attempting to access something inappropriately will be automatically re-directed to this page. It’s best practice to provide links back to your store, in case someone reached this page in error. Simply create a 404.html file in the root of your OpenCart store. You can use file manager to do so. Please see our article on using File Manager in cPanel for more information. Here’s a simple sample 404.html page we created: <html> <body> <p>The page you have requested does not exist. Please click on the link below to return to the store's home page: </p> <a href="/index.php">Return Home </a> </body> </html> How to Create a 404 Page Log into cPanel Click on the File Manager under the Files section. Navigate to the root directory of your shopping cart Create the + File button on the top left to create a new file Name the file “404.html“ Open the newly created file with the code editor Paste the code above into the file Click “Save“ If you need further assistance please feel free to ask a question on our Support Center website. Share this Article Carrie Smaha Senior Manager Marketing Operations Carrie enjoys working on demand generation and product marketing projects that tap into multi-touch campaign design, technical SEO, content marketing, software design, and business operations. More Articles by Carrie Related Articles Editing the Information Pages in the Footer of OpenCart My OpenCart 3 Contact Form Won’t Send Emails Resetting your OpenCart Admin Password with the Forgot Password link Using Free Cloudflare for SSL on OpenCart 1.5 Adding your store logo to your OpenCart 1.5 website Changing your Admin Password in OpenCart 1.5 Restoring a Database Backup in OpenCart 1.5 Sending Emails to Customers through OpenCart 1.5 How to Enable SSL Connection in OpenCart 1.5 Creating a 404 error page for OpenCart
We have a guide on how to set a custom 404 URL at the link below. https://www.inmotionhosting.com/support/website/how-to/set-404-via-htaccess
Could you please tell me in which folder this 404.html should be placed in case there are diffrent error pages for diffrent shoppint stores.