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 Answer
2
Accepted Answer

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
EXPERT
Toni_S
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions