I’ve tried a number of things… I know I’m missing something. Help!!
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^\? - [R=404,L]
</IfModule>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
RewriteRuledoes not work directly on query strings, you have to useRewriteCondto access them (or tricks on internal rewrites, but that’s not necessary here).Try
Any request to the root path with a query will end in a 404 response.