.htaccess阻止除index.php之外的所有目录

时间:2013-03-20 10:26:29

标签: apache .htaccess rewrite

我写了这个脚本来拒绝除index.php以外的所有内容

Order allow,deny
Deny from All

<Files *>
  Order Deny,Allow
  Deny from all
</Files>

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

但仍会显示http://mywebsite.com/image.jpg之类的链接。怎么可能?

0 个答案:

没有答案
相关问题