我想检查是否有任何查询字符串?和=符号
/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
现在我想在htaccess文件中进行这些更改,
任何人都可以帮我这样做。
提前谢谢。
答案 0 :(得分:2)
尝试:
RewriteCond %{THE_REQUEST} \?.*=.*
RewriteRule ^ - [L,R=404]