Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
</FilesMatch>

Help.

share|improve this question
add comment

1 Answer

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

share|improve this answer
add comment

Your Answer

 
discard

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.