Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
<LocationMatch "page=test">
Order Allow,Deny
Deny from all

doesn't work! I still can access

Any ideas?

share|improve this question

To the best of my knowledge, the LocationMatch directive does not match query parameters. Your URL is "", and that is what you can match.

You can use mod_rewrite to match the query string; the following is from the mod_rewrite documentation:

Note: Query String

The Pattern will not be matched against the query string. Instead, 
you must use a RewriteCond with the %{QUERY_STRING} variable.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.