Re: Args not being passed in rewrite rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx  //  pctony@xxxxxxxxxx
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux