Magento Multi-store function, most of the time is based on the language to choose, when the addition of multi-store, generally we will choose to open the Add store code to the URL address. Magento comes with this kind of function is quite good, but
Magento Multi-store function, most of the time is based on the language to choose, when the addition of multi-store, generally we will choose to open the Add store code to the URL address. Magento comes with this kind of function is quite good, but there is a problem very headache. When switching between different stores, the URL address contains the string "___from_store=". SEO is very unfriendly, so how about this part of the URL address? Locate the app\design\frontend\base\default\template\page\switch\languages.phtml file, open and modify the following code.
0102030405 |
//找到这段代码 echo $_lang ->getCurrentUrl() //修改为 echo $_lang ->getCurrentUrl(false) |
After the modification is complete, refresh the cache to remove the "___from_store=" string ~ ~ |
Remove "___from_store=" from the Magento multi-store URL address