----- Original Message ----

> From: Eric Covener <cove...@gmail.com>
> To: users@httpd.apache.org
> Sent: Tuesday, June 30, 2009 5:24:44 PM
> Subject: Re: [us...@httpd] Internal Recursion with mod_rewrite
> 
> On Tue, Jun 30, 2009 at 5:24 PM, Eric Covenerwrote:
> > On Tue, Jun 30, 2009 at 2:14 PM, Peter Kaywrote:
> >> Is adding another RewriteCond %{THE_REQUEST} !/Main/Gallery the canonical 
> >> way 
> to go?  Or is there some way to turn off the re-injection?
> >
> > That's the normal pattern (but with %{REQUEST_URI} more carefully
> > anchored maybe)

!=/Main/Gallery, as it turns out (slash required) to get:

    RewriteCond %{THE_REQUEST} /Main/Gallery/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !=/Main/Gallery
    RewriteRule .   /Main/Gallery?g2_path=%1   [QSA,L]


> Meant to include http://wiki.apache.org/httpd/RewriteLooping


They don't mention on that page that arguments (?g2_path=etc) don't count as 
URI...  I read the page, and never thought that /Main/Gallery?g2_path=test1/ 
would match!  I know better now.

Thanks,

--Peter Kay


      

---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to