.htaccess可以直接下载
<Files ~ "^.(htaccess|htpasswd)$">deny from all
</Files>
wdcp_v2.5.6(20130318)
引擎 nginx+apache
.htaccess头部加了上面的三行,.htaccess仍然可以下载。
下面还有:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
……
等语句
已测试,其它的伪静态正常,可以使用。 .htaccess是apache的规则,所以用nginx能正常下载,也是正常 最好是在nginx的默认配置里面限制一下.htaccess的下载。。
location ~ /.ht {
deny all;
}
页:
[1]