If I run…

RewriteCond %{REQUEST_URI} !^/en [NC]
RewriteRule ^(.*)$ http://cheese.com/en/$1 [R=301,NC,L,QSA]


…on the URL…

http://example.com/this/that/the/other


…it redirects to…

http://cheese.com/en/this/that/the/other


If I run…

RewriteCond %{REQUEST_URI} !^/en [NC]
RewriteRule ^(.*)$ /en/$1 [R=301,NC,L,QSA]


…I get an infinite loop error instead of…

http://example.com/en/this/that/the/other


Can anyone explain why?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to