Mobile app version of vmapp.org
Login or Join
Si4351233

: Have your rules like this: RewriteCond %{QUERY_STRING} !^lang= [NC] RewriteCond %{HTTP_COOKIE} lang=([^;]+) [NC] RewriteRule ^(.*)$ /?lang=%1 [R,QSA,L] That way you will not not get infinite loop

@Si4351233

Have your rules like this:

RewriteCond %{QUERY_STRING} !^lang= [NC]
RewriteCond %{HTTP_COOKIE} lang=([^;]+) [NC]
RewriteRule ^(.*)$ /?lang=%1 [R,QSA,L]


That way you will not not get infinite loop because of 1st negative condition.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Si4351233

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme