Mobile Detect Append URL

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

eg. "" shows full version of website, but "" 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

RewriteCond %{HTTP_HOST} ^$ [NC]
RewriteRule .?{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?