Jump to content

Automatic 301 redirects ?


prestBarka

Recommended Posts

Hello,

I have a shop which is divided in multishops by language. myshop.com/de for german, myshop.com/en for england, etc...

The exception is my french shop which is located in myshop.fr/

 

I changed this to myshop.com/fr from the backend Advanced parameters > Multistore and now my french shop has two URLs.

 

The main is myshop.com/fr/ and the other (the old) is myshop.fr/

 

Are 301 redirects automatically done ? Are all my old myshop.fr/randomPage redirected to myshop.com/fr/randomPage ?

I checked in the .htaccess file but there is no R=301 flag.

 

Thank you in advance.

Edited by prestBarka (see edit history)
Link to comment
Share on other sites

  • 4 years later...

first of all: backup!

 

then:

disable the languages don't used

open .htaccess and add this code before "# Dispatcher" (if you have only en and it lang)

RewriteRule ^en/(.*)$ /$1 [R=301,L]

RewriteRule ^it/(.*)$ /$1 [R=301,L]

save and upload the edited .htaccess

TIP: regenerate the sitemap!

 

Matteo

Link to comment
Share on other sites

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...