Re: Rewrite rule

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

 



    I tried the following thing without success.

    RewriteEngine on
    RewriteRule  ^/cgi-bin/blt?action=cs_query$ - [G]

mod_rewrite matches the URi not the the query string. Read about
RewriteCond here:
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond

I tried
RewriteCond  %{REQUEST_URI}  ^(cgi-bin/blt?action=cs_query)$
RewriteRule  ^1$ - [G]
or
RewriteCond  %{QUERY_STRING}  ^action=cs_query$
RewriteRule  ^/cgi-bin/blt?action=cs_query$ - [G]

without more success.

I don't see what's wrong now.

--
Sébastien Moretti


---------------------------------------------------------------------
To unsubscribe, e-mail: users-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