Q. There is this one query that I need to stop from going to the default page on my website (index.php). It doesn't do anything but I have my reasons! I have looked everywhere and no example I found has worked for me. Help me, Obi-Wan Kenobi!
A. Obi-Wan? That's a name I haven't heard in a long time.
As it turns out, one way that you can accomplish this is with Apache's
mod_rewrite. If one wishes to entirely remove the query string
"plugh=xyzzy" from queries to "http://www.example.com/index.php" this
technique seems to work:
# match the forbidden query
rewriteCond %{query_string}
plugh=xyzzy
# redirect without the query string
RewriteRule ^(.*)
http://www.example.com/? [R,L]




