[UPHPU] redirect off site works, onsite loops
Wade Preston Shearer
lists at wadeshearer.com
Thu Mar 27 14:16:35 MDT 2008
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20080327/42d75923/smime-0001.bin
More information about the UPHPU
mailing list