Re: Not re-written URI in module?

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

 



On 21 Jan 2013, at 20:08, Marc Boorshtein wrote:

> All,
> 
> I've written a module that checks the URI.  It doesn't work when used
> in conjunction with mod_rewrite, as the r->uri and r->unparsed_uri
> does not have the original uri but the re-written URI.

You could either look at r->prev, or add a hook to your module to
run before mod_rewrite.

A common cause for problems like this is that your "r" may be
a subrequest or internal redirect.  Always worth looking at r->main
and r->prev to see if those are what you want.

-- 
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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