【问题标题】:When I make the main page through DirectoryIndex all subdirectories have 403 error当我通过 DirectoryIndex 创建主页时,所有子目录都有 403 错误
【发布时间】:2017-07-10 09:40:36
【问题描述】:

当我通过 .htaccess DirectoryIndex 创建主页时 作为DirectoryIndex landing/index.php,网站首页变成了landing/index.php 但是所有子目录都有 403 错误,例如^ /blog 仅在您编写时不起作用:/blog/index.php。我临时解决了在每个子目录中添加 .htaccess 文件的问题:DirectoryIndex index.php。

【问题讨论】:

    标签: apache .htaccess


    【解决方案1】:

    重写为 DirectoryIndex 登陆/index.php index.php 据我了解,这一行会产生影响,因此在目录“博客”中搜索landing/index.php 并没有发现它返回错误?所以现在它搜索目录中存在的“index.php”。

    【讨论】:

      猜你喜欢
      • 2014-11-15
      • 2014-04-03
      • 2017-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多