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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南