订单允许,拒绝全部拒绝
不起作用! 我仍然可以访问http://example.com/?page=test
有任何想法吗?
据我所知,LocationMatch指令不匹配查询参数。 您的url是“ http://example.com/ ”,这是您可以匹配的。
你可以使用mod_rewrite来匹配查询string; 以下是来自mod_rewrite文档 :
Note: Query String The Pattern will not be matched against the query string. Instead, you must use a RewriteCond with the %{QUERY_STRING} variable.