Daniel Ali
Daniel Ali

Reputation: 23

error in htaccess

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

Answers (1)

anubhava
anubhava

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

Related Questions