Is it possible to send a 301 redirect for bucket objects?

I’ve tried to redirect bucket objects by adding the x-amz-website-redirect-location: to objects but that does not appear to be working. Has anyone come up with other solutions?


Have you been able to resolve this?

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This is the bucket I’m using if that helps:

I’m trying to enable a bucket website to see if that would help. Can I upload the configuration file or do I need to use the API and use a PUT as shown here:

What endpoint are you testing via?

x-amz-website-redirect-location is only for use in static-sites endpoint.