[UPHPU] redirect off site works, onsite loops
velda
velda at novapages.com
Fri Mar 28 21:31:14 MDT 2008
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
More information about the UPHPU
mailing list