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.

  1. Log in to cPanel.
  2. Click File Manager
  3. Click Settings at the top right.
  4. Tick Show Hidden Files (dotfiles)
  5. Click Save
  6. Select your public_html or addon domain directory.
  7. Select .htaccess and click Rename
  8. 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

  1. Log in to your PrestaShop admin panel
  2. Click Shop Parameters > Traffic & URLs
  3. Scroll down and set Friendly URL to NO and click Save
  4. Set Friendly URL to YES and click Save

Steps for PrestaShop version 1.6

  1. Log in to your PrestaShop admin panel
  2. Click Preferences > SEO & URLs
  3. Set Friendly URL to NO and click Save
  4. Set Friendly URL to YES and click Save