【发布时间】:2015-05-05 17:23:22
【问题描述】:
我想在 Google Cloud Storage 中托管一个网站,其中根指向某个文件夹(基本上它重定向到 /en/ 文件夹,默认语言)。
我可以在 Amazon S3 中使用 x-amz-website-redirect-location 标头完成此操作。但根据the documentation,该标头在 Google Cloud Storage 中不可用。
有没有一种干净的方法可以做到这一点?或者我应该在根目录中添加一个带有meta refresh 元素的 index.html 文件?
【问题讨论】:
-
您必须使用元刷新。没有办法让 GCS 对象发回重定向。