Re: [users@httpd] Rewriterule syntax not working

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

 



On 11/16/06, Darly Coupet <apache@xxxxxxxx> wrote:
RewriteRule
^/merchant.mv\?Screen=CTGY&Store_Code=AWLAS&Category_Code=Abc+Xyz$
http://www.sitename.com/index.php?action=view_user&user=2
[R=301,L]

I have tried the above, but not working.

Telling us that it is "not working" is not a good way to get help.
Tell us exactly what happened.

With mod_rewrite, you need to use the RewriteLog to debug.

But your first problem is that you need to read the docs for
RewriteRule, and in particular the box that is titled "Query String".
It tells you that RewriteRule doesn't match against the query string.
You need to use RewriteCond %{Query_String}

Joshua.

---------------------------------------------------------------------
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