cancel
Showing results for 
Search instead for 
Did you mean: 

Extra Language Extentsion

Extra Language Extentsion

Hello! How can I remove this from my site?

 

/en/?___from_store=cn

/cn/?___from_store=en

/fr/?___from_store=cn

3 REPLIES 3

Re: Extra Language Extentsion

One possible solution is to change the your page/switch/languages.phtml file

Find the line that reads

echo $_lang->getCurrentUrl()

And replace with

echo $_lang->getCurrentUrl(false)

Option 2

Go to System -> Configuration -> Web -> URL Options and set the 'Add Shop Code to URLs' option to Yes

This will make the urls to the store appear like the following:

www.myshop.com/otherstore/

www.myshop.com/default/

To edit the names of your stores to be SEO friendly, go to System -> Manage Shops

 

Option 3

 

Try the following:htaccess remove query string only for root

RewriteCond %{QUERY_STRING} ^___store=de&___from_store=(en|de)$ [NC] RewriteRule ^(en/?)?$ $1? [R=301,L,NC] 
RewriteCond %{QUERY_STRING} ^___from_store=(en|de)$ [NC] RewriteRule ^en/?$ $0? [R=301,L,NC]
OpenSource Expert | OpenSource Technologies | www.opensourcetechnologies.com
Magento plugins released: http://www.opensourcetechnologies.com/product/product-category/magento-extensions

Re: Extra Language Extentsion

OK thanks, I'll give it a try!

Re: Extra Language Extentsion

Hey! I don't see that code in my .htaccess file in the root. Can you show me a screenshot of how and where to add it in that code? Also, I tried the other two ways but they didn't work. Thanks for the third method though.