Dear User,
today I had looked for a couple of hours for a solution.
RewriteCond %{QUERY_STRING} ^query=(.*)$
RewriteRule ^$ http://www.domain.com/? [L,R=301]
I tested some code but it doesn't work :-(.
try#1
if($arg_query !~ "") { rewrite ^ /? last; }
try#2
if($query_string ~ ".*query=.*") { rewrite ^/? last; }
Help... please, Help.