[Semi-OT] mod_rewrite and $r->parsed_uri
[prev]
[thread]
[next]
[Date index for 2005/04/08]
Hi!
Is it possible to somehow get to the URI as it looks like after beeing
transformed by mod_rewrite?
What I'm trying to do is:
In a DB I have 'pseudo-files' with a column named 'path' and titles and
bodies in several languages. (title_de, title_en, etc)
Values for 'path' are eg: '/index.html', '/foo/bar.html'
I have a RewriteRule like this:
RewriteRule ^/(en|de)/(.*) /$2?lang=$1 [QSA,PT]
And a handler that takes what is in $r->parsed_uri->path and does a DB
lookup with the value.
The problem is that after mod_rewrite $r->parsed_uri->path returns
'/de/index.html'.
What am I missing?
--
#!/usr/bin/perl http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
 |
[Semi-OT] mod_rewrite and $r->parsed_uri
Thomas Klausner 10:30 on 08 Apr 2005
|