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>
  1. Log into cPanel
  2. Click on the File Manager icon
  3. Navigate to the root directory of your shopping cart
  4. Click on new file in the upper left 
  5. Name the file "404.html"
  6. Open the newly created file with the code editor
  7. Paste the code above into the file
  8. Click "save"

If you need further assistance please feel free to ask a question on our Support Center website

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

WordPress wp-login.php brute force attack
Updated 2014-07-17 06:43 pm EST
Hits: 200899

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

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

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!