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

Posted January 9, 2019 1.6k views
Block StorageUbuntu 18.04

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?

1 comment

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.

Submit an Answer
2 answers

What endpoint are you testing via?

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

edited by jarland

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: