Jump to content

Multi store and 301 redirect


Recommended Posts

Hi,

 

I am (re)posting here because i didn't get any answer on the French speaking forum :

 

I am developing a multistore (7 stores). It's a revision of existing sites.

 

I would like to have 301 redirections URL by URL when the new stores are online in order not to lose referencing.

 

I think that the easiest way to do this is to add redirections in the .htaccess file. But if my primary store is "www.store1.com", the folder where my second store might be "www.store1.com/store2/" will be virtually generated by Prestashop, so not physically.

 

So I don't have "store2" folder on the server to put an .htaccess file where there would be :

RedirectPermanent /url1.html   http://www.store1/store2/new_url1.com
RedirectPermanent /url2.html   http://www.store1/store2/new_url2.com
...

 

I tried two ways, the first, creating the folder "store2" physically et put in it the previous .htaccess file : it doesn't work (404 error).

 

I also tried to put this in the .htaccess file of the first store :

RedirectPermanent /store2/url1.html   http://www.store1/store2/new_url1.com
RedirectPermanent /store2/url2.html   http://www.store1/store2/new_url2.com
...

 

404 error too, can someone tell me if i miss something or if this solution is not appropriate?

 

Thanks for your help,

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...