的.htaccess拒绝存取权限给所有除了一个文件权限、文件、htaccess

由网友(没有阳光的向日葵)分享简介:我怎么能拒绝访问一个完整的文件夹和子文件夹,除了一个文件?该文件是:toon.php并驻留在同一文件夹解决方案 订购允许,拒绝< FilesMatch^香椿\的.php $>所有允许< / FilesMatch>这可能是最有效的,你可以得到。How can i deny access...

我怎么能拒绝访问一个完整的文件夹和子文件夹,除了一个文件? 该文件是:toon.php并驻留在同一文件夹

解决方案

 订购允许,拒绝
< FilesMatch^香椿的.php $>
所有允许
< / FilesMatch>
 

这可能是最有效的,你可以得到。

How can i deny access to a complete folder and sub-folders, with the exception of one file? That file is: toon.php and resides in the same folder.

解决方案 win7在删除文件时出现需要管理员权限的文件怎么删除

Order Allow,Deny
<FilesMatch "^toon.php$">
Allow from all
</FilesMatch>

That is probably the most efficient that you can get.

阅读全文

相关推荐

最新文章