Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess htaccess目录索引不符合要求_.htaccess_Directoryindex - Fatal编程技术网

.htaccess htaccess目录索引不符合要求

.htaccess htaccess目录索引不符合要求,.htaccess,directoryindex,.htaccess,Directoryindex,这应该使用html,然后使用php作为目录索引,确实如此。但是当我在url中手动键入index.php时,我会被重定向到index.html。这能避免吗 如果删除.htaccess文件index.php将成为默认值,因此我猜服务器已阅读说明,但没有按照我的预期遵守说明。检查.htaccess是否不存在于当前文件夹中,然后使用不同的配置覆盖当前文件夹。 确保您的主机或apache配置允许进行此类更改 下面是另一个带有一些建议的链接: 希望这有帮助据我所知,这是根。搜索了服务器,没有找到其他hta

这应该使用html,然后使用php作为目录索引,确实如此。但是当我在url中手动键入index.php时,我会被重定向到index.html。这能避免吗


如果删除.htaccess文件index.php将成为默认值,因此我猜服务器已阅读说明,但没有按照我的预期遵守说明。

检查.htaccess是否不存在于当前文件夹中,然后使用不同的配置覆盖当前文件夹。 确保您的主机或apache配置允许进行此类更改

下面是另一个带有一些建议的链接:


希望这有帮助

据我所知,这是根。搜索了服务器,没有找到其他htaccess文件。wordpress似乎在干扰。必须从另一个角度来解决这个问题。无论如何谢谢你!
DirectoryIndex index.html index.htm index.php