【发布时间】:2018-02-07 02:36:30
【问题描述】:
我在我的服务器上安装了一个 symfony 后端,在 symfony/web 文件夹中我创建了一个新文件夹“app”并且有一个 index.html。如果我打电话给https://example.com/app/,我会得到 404,而https://example.com/app/index.html 它正在工作。我试图从这里更改 symfony .htaccess 中的 DirectoryIndex:
DirectoryIndex app.php
到这里:
DirectoryIndex app.php index.html
但它仍然无法正常工作。如果我调用 example.com/app/,我该怎么做才能打开 index.html(只是为了该文件夹不会破坏 symfony 设置)?
【问题讨论】:
标签: .htaccess symfony directoryindex