【问题标题】:How do I make folders Forbidden to view in Magento如何使文件夹禁止在 Magento 中查看
【发布时间】:2014-05-30 19:27:59
【问题描述】:

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

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

禁止 您无权访问此服务器上的 /skin。

【问题讨论】:

    标签: html mysql sql-server apache magento


    【解决方案1】:

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

    使用

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

    【讨论】:

      【解决方案2】:

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

      如果你想关注 (b),请在 .htaccess 中关注

      Options -Indexes
      

      谢谢

      【讨论】:

        猜你喜欢
        • 2010-12-14
        • 1970-01-01
        • 1970-01-01
        • 2011-07-26
        • 2014-10-25
        • 1970-01-01
        • 1970-01-01
        • 2012-06-12
        • 2018-03-09
        相关资源
        最近更新 更多