Mobile Detect Append URL

Topics: Developer Forum, User Forum
Sep 24, 2015 at 2:11 AM
Is there anyway to append all url's when using a subdomain without ammending all my rewrites?

eg. "www.mydomain.com" shows full version of website, but "m.mydomain.com" will still go to all the same scripts and directories as per the rewrites for the main website, but append them with a variable, eg. mobile=yes

Example
RewriteCond %{HTTP_HOST} ^m.mydomain.com$ [NC]
RewriteRule .? http://m.mydomain.com%{REQUEST_URI}&ismobile=yes [I,L]

Then, all my other redirects would have "ismobile=yes" meaning I don't need to adjust the folowing redirects because they'll automatically have "mobile=yes" appended to them

RewriteRule ^/fr/some-page$ /some-script.asp?lang=fr [I,L]
RewriteRule ^/es/some-page$ /some-script.asp?lang=es [I,L]
RewriteRule ^/de/some-page$ /some-script.asp?lang=de [I,L]
RewriteRule ^/nl/some-page$ /some-script.asp?lang=nl [I,L]

Is this possible?