【问题标题】:Laravel Apache DirectoryIndex now needs index.phpLaravel Apache DirectoryIndex 现在需要 index.php
【发布时间】:2020-11-20 13:27:18
【问题描述】:

我们有一个从 5.x 升级到 7.x 的应用。经过大量编辑(确实不错),我们运行了 7.x 版本。

但要让应用程序的根 URL 正常工作,我们必须将 index.php 添加到 DirectoryIndex 设置中。如果没有这个,我们会出现权限被拒绝错误(因为不允许访问目录)。

url 下的路径似乎有效(忽略 css 问题等),因此我们假设重写有效。

为什么要改变?迁移似乎不应该改变这一点。

【问题讨论】:

    标签: laravel apache mod-rewrite permissions directoryindex


    【解决方案1】:

    没关系。我看到原始 .htaccess 文件设置了 DirectoryIndex 。不确定这是 laravel 更改还是我们添加的内容。

    【讨论】:

      猜你喜欢
      • 2011-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-04
      • 2015-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多