Q:

rewrite condition for matching querystring

I want to check if any querystring comes with ? and = symbols
/user/person/1  is should be valid
/user/person/date/21 is should be valid

/user/?page=Reg  if something comes like this I just want to throw a 404

Now i want to do these change in htaccess file,
Can anyone help me to do this.
Thank you in advance.

A:

Try:
RewriteCond %{THE_REQUEST} \?.*=.*
RewriteRule ^ - [L,R=404]

