Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.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
当我没有索引时显示index.html_Html_.htaccess_Amazon Ec2 - Fatal编程技术网

当我没有索引时显示index.html

当我没有索引时显示index.html,html,.htaccess,amazon-ec2,Html,.htaccess,Amazon Ec2,请自己看看: www.cookeh.org 按“主页”按钮 www.cookeh.org/index.html 然而,我有一个index.php文件。我刚刚用htaccess删除了所有的.php扩展。我正在使用AmazonEC2来托管我的网站 当我在本地测试时,这种情况不会发生。有什么原因吗?我的实例没有index.html 但是,当您转到www.cookeh.org->单击“登录”按钮->单击“主页”按钮时,它将转到/index而不是.html。请清除浏览器的缓存,然后再次访问您的网站。如果没

请自己看看:

www.cookeh.org 按“主页”按钮 www.cookeh.org/index.html

然而,我有一个index.php文件。我刚刚用htaccess删除了所有的.php扩展。我正在使用AmazonEC2来托管我的网站

当我在本地测试时,这种情况不会发生。有什么原因吗?我的实例没有index.html


但是,当您转到www.cookeh.org->单击“登录”按钮->单击“主页”按钮时,它将转到/index而不是.html。

请清除浏览器的缓存,然后再次访问您的网站。如果没有修复,请通过评论让我知道

编辑。这是你的问题


谢谢,那是我的一个小错误。我有时会忘记那些事情。我会很快接受你的回答,因为这篇文章是新的:)