RockStar360 Posted August 3, 2015 Share Posted August 3, 2015 I changed the domain of one of my pages in Prestashop and I can not do a 301 redirect correctly.Whenever you walk into one of the old urls, its redirected to the base domain.But I would like to be properly redireccionate their routes , as categories and products ... not the primary domain .Any recommendation? Many thanks. The idea is if you enter www.olddomain.com/categorie1 -> www.newdomain.com/categorie... THANKS! Link to comment Share on other sites More sharing options...
RockStar360 Posted August 3, 2015 Author Share Posted August 3, 2015 This code works for me; <IfModule mod_rewrite.c>Options +FollowSymlinksRewriteEngine on#Don't redirect https pagesRewriteCond %{SERVER_PORT} ^80$RewriteCond %{HTTP_HOST} !^www\.test\.com$RewriteRule ^ http://www.test.com%{REQUEST_URI} [L,R=301]</IfModule> Link to comment Share on other sites More sharing options...
Recommended Posts