Creating a 404 error page for OpenCart
Written by Tim SissonViews: 3,682
Published: Dec 30, 2011
Last Modified: Mar 20, 2013
Creating a custom error 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>
- Log into cPanel
- Click on the File Manager icon
- Navigate to the root directory of your shopping cart
- Click on new file in the upper left
- 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.
Like this Article?
Tweet
OpenCart Security
| 1. | Securing the /admin/ folder in OpenCart |
| 2. | Security Steps to Take After Installing OpenCart |
| 3. | Creating a 404 error page for OpenCart |
Latest Questions
If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Recent Questions- i want to create a report in moodle 2.5 that has field like name , coasre name, marks obtained , prcentage, grade and also want download from moodle in excel format plese reply me procedure thks in advance
- i want ocreate a costom report that has field name , coarse ,marks , percentage
- Multiple websites and their folders
Need more Help?
Search
Ask the Community!
Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.
Current Customers
| Chat: | Click to Chat Now | E-mail: | support@InMotionHosting.com |
|---|---|---|---|
| Call: | 888-321-HOST (4678) | Ticket: | Submit a Support Ticket |

