SetEnv MAGE_RUN_TYPE store

RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteCond %{QUERY_STRING} !___store=default [NC]
RewriteCond %{HTTP_COOKIE} !track=default [NC]
RewriteRule ^ - [E=MAGE_RUN_CODE:mobile]

RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteCond %{QUERY_STRING} ___store=default [NC]
RewriteRule ^ - [E=MAGE_RUN_CODE:default,CO=track:default:%{HTTP_HOST}]

RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteCond %{QUERY_STRING} !___store=mobile [NC]
RewriteCond %{HTTP_COOKIE} track=default [NC]
RewriteRule ^ - [E=MAGE_RUN_CODE:default]

RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteCond %{QUERY_STRING} ___store=mobile [NC]
RewriteRule ^ - [E=MAGE_RUN_CODE:mobile,CO=track:mobile:%{HTTP_HOST}]

发表评论
Magento2 技术支持 上门服务

工作时间
周一至周六
9:00-18:00
相关咨询电话
15360669780
侨海科技