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 Antwort
2
Akzeptierte Antwort

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
EXPERTE
Toni_S
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen