10
没有.html扩展名的S3静态页面
通过Amazon S3提供静态站点时,我想知道如何摆脱.html每个页面的文件扩展名。 现在我有: mysite.com/ # works fine, serves index.html mysite.com/mypage.html # works fine mysite.com/mypage # doesn't work /mypage显示的错误: 404 Not Found Code: NoSuchKey Message: The specified key does not exist. Key: mypage RequestId: 1089D7A26EFED9AD HostId: Ud8cFy8Zl1mJ+oFjFOmU1Xacq9+v70KuaJfOc4nFMEPhd66AkLhr4Pj5u0QH6Gog 我已经尝试设置Content-Type到text/html,按照这个帖子,但它并没有解决这个问题对我来说。 如何在S3上/mypage提供文件/mypage.html?