【发布时间】:2012-02-06 18:56:17
【问题描述】:
我想阻止对“sub/folder/index.php”的访问,但不阻止对其他任何地方的“index.php”的访问。
<Files index.php>
Order allow,deny
Deny from all
</Files>
有效,但会阻止所有“index.php”文件。
<Files sub/folder/index.php>
Order allow,deny
Deny from all
</Files>
不起作用。我需要使用<Directory>吗?
我不想在子/文件夹中创建 .htaccess 文件
我无权访问 httpd.conf
我不想阻止子/目录中的所有内容
如果这么简单,我就不会问了;)
【问题讨论】: