Report this

What is the reason for this report?

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

Posted on January 9, 2019

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?



This textbox defaults to using Markdown to format your 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.

What endpoint are you testing via?

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

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

https://noventech.nyc3.digitaloceanspaces.com/

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:

https://developers.digitalocean.com/documentation/spaces/#create-bucket-website

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.