---
title: "Creating a 404 error page for OpenCart"
description: "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..."
url: https://www.inmotionhosting.com/support/edu/opencart/creating-a-404-error-page-for-opencart/
date: 2011-12-30
modified: 2023-12-22
author: "Carrie Smaha"
categories: ["OpenCart"]
type: post
lang: en
---

# Creating a 404 error page for OpenCart

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](/support/edu/cpanel/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

1. [Log into cPanel](/support/edu/cpanel/how-to-log-into-cpanel/)
2. Click on the **[File Manager](/support/website/how-to-manage-files-server/)** under the *Files* section.
3. Navigate to the root directory of your shopping cart
4. Create the **+ File** button on the top left to create a new file
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](community-support). 
