Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

modifying the query string & uri without a redirect ?

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


modperl-list at 2xlp

Dec 23, 2005, 9:43 PM

Post #1 of 1 (442 views)
Permalink
modifying the query string & uri without a redirect ?

Currently a page is accessed like this:
/user/profile?id=X

I'm trying to get url schemes like this to map to that page
/users/X
/users/X/profile

I tried doing it in mod_rewrite. there i ran into 2 problems:
a_ the new mapping is shown to the user
b_ i can either replace the query string entirely, or append the
new 'id' to it. if there's an existing id param in the string
though, i run into a collison

so i say: lets just have mod_perl handle this all

great!

a regex on $r->uri() gives me the elements i need to remap the uri.
fine!

but
i need to overwrite one (or more) params in the request string (as
accessed by libapreq)

does anyone know of a painless way to do this?

thanks.

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.