htaccess - 拒绝规则后不工作允许规则

时间:2021-05-20 17:46:18

标签: .htaccess mod-rewrite apache2

有下一个htaccess代码:

<Files *.php>
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Files>

<Files index.php>
    Order Allow,Deny
    Allow from all
</Files>

<Files /applications/core/interface/js/js.php>
    Order Allow,Deny
    Allow from all
</Files>

前两条规则工作正常。 js.php 规则不起作用。为什么?

0 个答案:

没有答案