我这里有一个文件index.php:
http://localhost/widget_corp/explore/home/
但当我键入此路径并按enter键时,它不会打开index.php,因此,如果我键入
http://localhost/widget_corp/explore/home/index.php
它打开了!可能的问题是什么?
编辑:我这里还有一个index.php文件:
http://localhost/widget_corp/explore/staff/
当我输入以下路径并按enter键时,它将打开index.php
那么home目录有什么问题呢?
发布于 2012-04-23 20:01:50
尝试将以下行添加到.htaccess
文件中:
DirectoryIndex index.php index.html
发布于 2012-04-23 20:01:28
你需要设置你的网络服务器的DirectoryIndex
文件(我假设现在是apache ):
DirectoryIndex index.php
在httpd.conf
中。
发布于 2012-04-23 20:01:57
如果您使用的是apache,则需要设置DirectoryIndex
https://stackoverflow.com/questions/10280103
复制相似问题