我们正在运行Magento CE 1.6.2,并且我们想要运行另一个商店。我们已经正确配置了store2.com,但是我们遇到了问题:Magento Multistore:将非www重定向到www
store1.com重定向到www.store1.com:好吧 store2.com和www.store2.com重定向到www.store1.com:不行
这里是我们的.htaccess:
SetEnvIf Host .*store2.com MAGE_RUN_CODE=store2_com
SetEnvIf Host .*store2.com MAGE_RUN_TYPE=website
重定向非WWW到www我们使用:
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
这个配置不起作用。
我们在store2.com上运行一个托管域,并在store1.com和store2.com之间共享托管。
希望你能帮助我们并对我的英语感到抱歉。
谢谢您的帮助 昆汀