Apache2-为什么;http://localhost/index" 重定向到";http://localhost/index.php"?

Apache2-为什么;http://localhost/index" 重定向到";http://localhost/index.php"?,php,configuration,apache2,Php,Configuration,Apache2,我目前的环境是:Debian、apache2和php5 当我浏览时http://localhost/index“,”http://localhost/index.php“脚本已执行 如果我不想这样做,我是否需要更改apache的配置?如果是,我该怎么做?这是由apache的MultiViews指令引起的。 请参阅此处的文档:是否可以发布本地主机(默认域)的virtualhost或.htaccess文件?

我目前的环境是:Debian、apache2和php5

当我浏览
时http://localhost/index“
”http://localhost/index.php“
脚本已执行


如果我不想这样做,我是否需要更改apache的配置?如果是,我该怎么做?

这是由apache的MultiViews指令引起的。
请参阅此处的文档:

是否可以发布本地主机(默认域)的virtualhost或.htaccess文件?