httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: [users@httpd] Infinite loop with RewriteRule
Date Tue, 31 May 2005 10:31:11 GMT
* Arne Heizmann <Arne.Heizmann@csr.com> wrote:

> Boyle Owen wrote:
> >> 
> >> I have a problem with the following RewriteRule causing an infinite
> >>  loop:
> >> 
> >> RewriteCond %{HTTP_HOST} (first|second|third|fourth) RewriteRule 
> >> ^(.+)$ %1/$1 [L,R,NC]
> > 
> > You do understand what ^(.+)$ converts to? [...] it will match the 
> > entire URI, no matter what it is.
> 
> But he has the [L] flag set. I would have thought the rule would 
> therefore be applied only once.

... in this particular request. Since mod_rewrite in .htaccess causes an
internal redirect, it's applied again, and again.

nd

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message