Re: Internal Recursion with mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----

> From: Eric Covener <covener@xxxxxxxxx>
> To: users@xxxxxxxxxxxxxxxx
> Sent: Tuesday, June 30, 2009 5:24:44 PM
> Subject: Re:  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-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux