You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by NY...@aol.com on 2005/01/13 15:47:13 UTC

mod_rewrite with php

Hello!
 
I am trying to write a simple statement in mod_rewrite that acts as a  pseudo 
redirect.
 
Any request on the website that has "pda" at the beginning of it is  going to 
grab Clpocket.php instead of the given URI. For the pda script to work  
however, I need the original URI (before redirect) passed to the php  script.
 
Will the original URI be passed via HTTP header, or do I have to setup a  
parameter? And if a parameter is needed, how do I accomplish this?
 
This is how I have the rewrite formatted:
 
RewriteRule /pda* "/apache2.0/htdocs/Clpocket.php" 
 
Please help!
 
James