Can I use two separate browser-language-based RewriteCond’s in .htaccess? One is for the domain root, one is for the subdomain ‘m’.
RewriteCond %{HTTP:Accept-Language} (cs) [NC]
RewriteRule ^$ /index_cz.php [L,R=301]
RewriteCond %{HTTP:Accept-Language} (cs) [NC]
RewriteRule ^$ /m/index_cz.html [L,R=301]
At the moment the first rule works fine, but the second rule does not appear to function and instead is showing the root index_cz.php if language ‘cs’ is found. Any ideas? Thanks!
your conditions are same! how apache should detect the difference!
If you want to use different languages, so change the conditions!
Edit: