Mod rewrite 在AmazonS3上重写Mod_

Mod rewrite 在AmazonS3上重写Mod_,mod-rewrite,amazon-s3,amazon-web-services,amazon,Mod Rewrite,Amazon S3,Amazon Web Services,Amazon,可以在AmazonS3上使用mod_重写吗 www.example.com/about.html -> mybucket.s3.amazon.com/index.html www.example.com/welcome.html -> mybucket.s3.amazon.com/index.html www.example.com/contact.html -> mybucket.s3.amazon.com/index.html 谢谢 没有 但您可以将其托管在不同的子域下。

可以在AmazonS3上使用mod_重写吗

www.example.com/about.html -> mybucket.s3.amazon.com/index.html
www.example.com/welcome.html -> mybucket.s3.amazon.com/index.html
www.example.com/contact.html -> mybucket.s3.amazon.com/index.html
谢谢

没有

但您可以将其托管在不同的子域下。 你可以

s.example.com/about.html 
s.example.com/welcome.html 
s.example.com/contact.html
并直接从中为他们服务。 更好的方法是在cloudfront中提供这些文件。 这是你如何得到你自己的

你要问的一个问题是。所有这些文件大多是静态的,而不是高性能的 很少访问。在CDN中托管它们看起来有点过分。

在这种情况下,您可以使用错误文档


错误文档解决方案在表面上起作用,但如果您检查实际响应状态标题,您将看到页面返回404。这显然不好


我仍然在寻找替代方案,现在我想我会使用hashbang。

太棒了!!请稍作解释