Prestashop website permament redirect

Avatar
  • Answered
Hello,

I just moved my prestashop shop from https://icinger.com/shop to https://icinger.com.
But I have customer that bookmarked the old urls + link from other websites. How could I set up permanent redirect from https://icinger.com/shop/* to https://icinger.com/*
I tried to add that in my .htacces
RewriteCond %{HTTP_HOST} ^icinger.com/shop [NC,OR]
RewriteCond %{HTTP_HOST} ^www.icinger.com/shop [NC]
RewriteRule ^(.*)$ http://icinger.com/$1 [L,R=301,NC]
But it didin't work as it seems prestashop is also redirecting.

Regards,

Cédric Icower
Avatar
johnpaulb-imhs1
Hello Cédric, Thank you for your question regarding permanently redirecting a PrestaShop site. Instead of manually adding a .htaccess rule, I recommend changing your URL in PrestaShop. This works for both 1.5 and 1.6 versions though the layout may be a bit different. Then reset your URL settings in the dashboard, by toggling them on and off. This should reset the .htaccess rules PrestaShop uses. Thank you, John-Paul