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

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to