If you have an error with your PrestaShop .htaccess file you can regenerate it by following the steps below.
First, rename your existing .htaccess file.
- Log in to cPanel.
- For help accessing your cPanel see Where do I log in to my hosting control panel.
- Click File Manager
- Click Settings at the top right.
- Tick Show Hidden Files (dotfiles)
- Click Save
- Select your public_html or addon domain directory.
- Select .htaccess and click Rename
- Enter .htaccess.bak and click Rename File
Renaming ensures you have a backup copy of your .htaccess file just in case.
Regenerate PrestaShop .htaccess with SEO URLs
Steps for PrestaShop version 1.7
- Log in to your PrestaShop admin panel
- Click Shop Parameters > Traffic & URLs
- Scroll down and set Friendly URL to NO and click Save
- Set Friendly URL to YES and click Save
Steps for PrestaShop version 1.6
- Log in to your PrestaShop admin panel
- Click Preferences > SEO & URLs
- Set Friendly URL to NO and click Save
- Set Friendly URL to YES and click Save