[notice type=”warning”]Note! .htaccess is a special configuration file which is used on web servers running on the Apache web server software. It is located in your store root directory and enables some environment variables. Without .htaccess it will not be possible to turn on the URLs (URL – rewriting rules etc.), disable access to some directories, actions, etc.
Why is Regenerating .htaccess File required?
Sometimes it is necessary to regenerate .htaccess file. Some features may not work properly in your PrestaShop front office, after some changes in SEO & URL’s settings, after adding image types into Preferences -> Images section, after activating and modifying the multistore. In this case, you must regenerate .htaccess file.
Removing File from Your Root Directory
- Enter your website server via FTP or cPanel File manager.
- Go to your store root directory.
- Download .htaccess file to your computer to back it up.
- Choose the file on your server and click Delete button.
Regenerate Using SEO URLs
- Log into your PrestaShop admin panel.
- Go to Preferences -> SEO and URLs section:
- Set Friendly URL option to No and click Save button:
- Enable Friendly URL back and save the changes.
- .htaccess will be regenerated in your store.
Regenerate If You are Using Multistore
- Log into your PrestaShop admin panel.
- Go to Preferences -> General section:
- Turn the multistore feature off and save changes.
- Enable Multistore back and save the configuration.
- Your .htaccess file will be regenerated properly.
Hopefully, this tutorial was helpful for you.