Re: Getting the "pre rewrite rules" uri

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

From: Torsten Foertsch
Subject: Re: Getting the "pre rewrite rules" uri
Date: 20:09 on 27 Nov 2004
--nextPart16956441.qMJ9u9oesG
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Saturday 27 November 2004 17:53, modperl@xxxxxxxxxx.xxx wrote:
> 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.

$r->the_request() is read only and returns the request line.

Torsten

--nextPart16956441.qMJ9u9oesG
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBqN8KwicyCTir8T4RAkowAJ90awAKEBk8B/7X4k+X5Yg3YU8cqQCff6GD
TEniDD4koSCAsB5WPAbOeEI=
=R3t8
-----END PGP SIGNATURE-----

--nextPart16956441.qMJ9u9oesG--

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