---
title: "Fix 404 Error When Logging into PrestaShop 1.5"
description: "The MOD REWRITE (URL rewriting) is active by default on all InMotion Hosting servers. However, this setting can be manipulated in the .htaccess file. PrestaShop requires that URL rewriting be active..."
url: https://www.inmotionhosting.com/support/edu/prestashop/404-error-occurs-in-prestashop-login/
date: 2013-03-27
modified: 2025-02-22
author: "InMotion Hosting Contributor"
categories: ["Prestashop"]
tags: ["Prestashop v1.5"]
type: post
lang: en
---

# Fix 404 Error When Logging into PrestaShop 1.5

[![Error 404 will show when URL Rewriting is disabled](https://www.inmotionhosting.com/support/wp-content/uploads/2013/03/edu_prestashop1.5_404error_404-error-1024x506.png)](https://www.inmotionhosting.com/support/wp-content/uploads/2013/03/edu_prestashop1.5_404error_404-error.png)

The **MOD REWRITE** (URL rewriting) is active by default on all InMotion Hosting servers. However, this setting can be manipulated in the .htaccess file. PrestaShop requires that URL rewriting be active when Friendly URLs are enabled as an option. If the URL rewriting is disabled, then a 404 error will appear when attempting to use the login for the PrestaShop website. The following steps explain how to correct this error on your InMotion Hosting account.

## Fixing a 404 Error in PrestaShop when Mod_Rewrite is Disabled

1. [Log into cPanel](/support/edu/cpanel/how-to-log-into-cpanel/).
2. Click on [File Manager](/support/edu/cpanel/using-file-manager-in-cpanel/) and then navigate to the installation location of your PrestaShop installation.
3. At the root of your PrestaShop installation look for the **.htaccess** file. Click on the file to highlight it and then click on **EDIT** or **CODE EDIT** at the top of the *File Manager* in order to edit the file.
4. **URL Rewriting **is on by default on all InMotion Hosting servers. This means that you do not need to specifically have code in the **.htaccess** file to turn on the option. However, code can be included in the **.htaccess** file that can turn **OFF** the option and may often be the source of the problem.  Observe the screenshot at right for an example of how this may appear.![Shows that mod_rewrite is disabled](/support/images/stories/edu/prestashop1.5/404error/mod-write-off.png)
5. Edit the** .htaccess** file and turn **mod_rewrite** so that it is **ON**. This changes the Rewrite Engine setting to ON (‘RewriteEngine on’). If it is disabled, you will see it set as ‘RewriteEngine off’.
6. Click on **Save Changes** in the top right hand corner of the editor.

If URL Rewrite enabled, then the 404 error will not appear. For more information about enabling Friendly URLs, go to [How to set up Search Engine Friendly URLs in PrestaShop 1.5](/support/edu/prestashop/setting-search-engine-friendly-urls/).
