httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Stevenson <t...@pc-tony.com>
Subject Re: [users@httpd] Args not being passed in rewrite rule
Date Tue, 05 Aug 2008 21:58:49 GMT
Skip Evans wrote:
> Hey all,
> 
> I have the following rewrite rule in an .htaccess file.
> 
> RewriteRule .modules.php?(.*)$ 
> http://prepcube.venomouspenguin.com/modules.php?$1
> 
> And it does successfully call the modules.php file in the document root, 
> but the arguments do not get passed.
> 
> In other words, if
> 
> modules.php?mod=coaches
> 
> is called
> 
> the 'mod=coaches' part will be missing when the second modules.php file 
> is called.
> 

Skip take a look at the rewrite docs. Specifically this page 
http://httpd.apache.org/docs/trunk/rewrite/rewrite_flags.html

Look at the [QSA] flag. You need to use this to pass query strings in 
rewrite.


Tony


-- 


-----------------------------------------
Tony Stevenson
tony@pc-tony.com  //  pctony@apache.org
http://www.pc-tony.com/

1024D/51047D66 ECAF DC55 C608 5E82 0B5E  3359 C9C7 924E 5104 7D66
-----------------------------------------

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message