移动设备重定向到 domain/m/request_uri,但如果您将该 URL 放入桌面,它应该重定向到 domain/request_uri。
有什么建议么?谢谢!
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/(fb/)?(takeaction|\d{1,3})/.*$
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteRule ^(.*)$ /m/$1 [L,R=302]
RewriteCond %{REQUEST_URI} ^/m/(takeaction|\d{1,3})/.*$
RewriteCond %{HTTP_USER_AGENT} "!(android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile)" [NC]
RewriteRule ^/m/(.*)$ /$1 [L,R=302]