S3 Object Redirect not working?

0

Hello, I am trying to add a metadata redirect onto some pdf objects which have been superseded in the past.

I have set the value of the "x-amz-website-redirect-location" key to the correct object key but no luck, the object url still opens the original pdf. Have tried in a private browser as to avoid any cache issues.

Any help appreciated.

1 回答
2
已接受的回答

That redirection only works if you have enabled the Statis Website hosting and you are accessing the objects via the Statisc website endpoint. If you are accessing it directly on the S3 bucket URL or S3 API the redirection will not work.

profile pictureAWS
专家
Toni_S
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容