How do I deny access to a specific query across the whole website?
For example, whenever someone goes on www.example.com/?hello=123 they get redirected to www.example.com
How do I deny access to a specific query across the whole website?
For example, whenever someone goes on www.example.com/?hello=123 they get redirected to www.example.com
Try it like this,
RewriteEngine on
RewriteCond %{QUERY_STRING} ^hello=123$
RewriteRule ^ www.example.com [L,R]