Reputation: 23
Anyone help me to correct the following code
I want to disable the direct access from users but the Apache can do it
<Files f1.php, f2.html>
Order allow,deny
Deny from all
</Files>
Upvotes: 0
Views: 31
Reputation: 786091
Multiple files are not allowed in <Files>
directive, break it into 2 and use it like this:
<Files f1.php>
Order allow,deny
Deny from all
</Files>
<Files f2.html>
Order allow,deny
Deny from all
</Files>
Upvotes: 1