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

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

1 Answer 1

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.