我有下面的 htaccess 代码用于将移动设备重定向到网站的移动页面。但是,如果它是子域 URL,我需要它不重定向;例如:subdomain.mydomain.com 我需要进行哪些更改?
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/mydomain.*$
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteRule ^(.*)$ https://mydomain.com/mobile-page.html [L,R=302]