httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Moretti <sebastien.more...@unil.ch>
Subject Re: [users@httpd] Rewrite rule
Date Wed, 30 Apr 2014 08:59:52 GMT
>     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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message