【发布时间】:2016-02-27 12:51:10
【问题描述】:
如何让我的项目/虚拟主机链接显示所有内容,而不是直接查找 index.php?
如果我在“foo”下单击,如果没有 index.php,我想查看其中的所有文件夹和文件,而不是显示错误。
我尝试在文件夹中放置一个 .htaccess,但没有成功。
如果配置文件中有设置,请告诉我(我已经通过配置文件取消了标头的注释并重写了模块)。
我希望在单击文件夹时显示类似于 here 的内容。
我的 htaccess 文件:
Options +Indexes
DirectoryIndex disabled
LoadModule headers_module modules/mod_headers.so
LoadModule rewrite_module modules/mod_rewrite.so
【问题讨论】:
-
来自 apache 日志的错误:[core:alert] [pid 2984:tid 996] [client ::1:50836] C:/wamp64/www/Personal/.htaccess: Illegal option I get当我尝试访问 localhost 或我的其他项目文件夹时出现此错误。