Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

What the heck... There's only one argument, the regex.

Earlier in the file, I denied all. Now I just want to allow access to index.php, as well as images, css, and javascript.

<FilesMatch ~ "(?i:index.php|\.gif|\.jp?g|\.png|\.css|\.js)$" >
        Order allow,deny
        Allow from all


share|improve this question

Looks like two arguments to me. Remove the ~ and you'll have one argument again :)

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.