Wade Preston Shearer wrote:
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?
It can't loop on cheese.com, because cheese.com isn't using example.com's .htaccess, right? What happens if you put example.com in place of cheese.com on your second line there, instead of referencing relatively like in your example, anything?

-V

_______________________________________________

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

Reply via email to