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 réponse
2
Réponse acceptée

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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions