如何在Magento中禁止查看文件夹

时间:2014-05-30 19:28:00

标签: html mysql sql-server apache magento

示例:http://www.acuity-sports.com/skin/

我希望这是他们在下面看到的而不是我的树:

禁 您无权访问此服务器上的/皮肤。

2 个答案:

答案 0 :(得分:3)

看看@ how to prevent directory access and show forbidden error in php

使用

添加.htaccess文件
# disable directory browsing
Options -Indexes

答案 1 :(得分:1)

有很多方法可以做到这一点 - a)apache vhost fole b).htaccess

如果你想跟随(b),请在.htaccess中进行以下操作

Options -Indexes

由于

相关问题