Getting the "pre rewrite rules" uri

[prev] [thread] [next] [Date index for 2004/11/27]

From: modperl
Subject: Getting the "pre rewrite rules" uri
Date: 16:53 on 27 Nov 2004
Hi,

Using MP1 and I have a really small niggling problem that I can't seem to 
find the answer for. We've written our own content handler. There are 
several rewrite rules in the format of the following example in the apache 
config:

RewriteRule ^/page_(.+).html$ /page.pl?page_id=$1 [passthrough]

When we call the uri method on the Apache::Request object that the 
handler has been passed, it returns the value "/page.html".

I want to know the original uri value, from before the rewrite taking 
place... How do I get it? Assume there are lots of rewrite rules of 
slightly different formats and that the handler doesn't know what they 
are.

        -- 
        Digital photo printing:
http://www.fotoserve.com/?affiliate_id=1093871459

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Getting the "pre rewrite rules" uri
modperl 16:53 on 27 Nov 2004

Re: Getting the "pre rewrite rules" uri
Torsten Foertsch 20:09 on 27 Nov 2004

Re: Getting the "pre rewrite rules" uri
modperl 21:30 on 27 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52