- Newest
- Most votes
- Most comments
Hello,
We have tested the same scenario in our lab environment where an object was uploaded to a bucket which has static website hosting enabled. While uploading, x-amz-meta-website-redirect-location
header was passed. In the management console, the metadata was correctly set on the object as you have mentioned.
However, while the object was accessed using the static website endpoint, we were successfully redirected to the website endpoint provided in the x-amz-meta-website-redirect-location
header.
Please note that redirection only works if you have enabled the Static Website hosting and you are accessing the objects via the Static website endpoint. If you are accessing it directly on the S3 bucket URL or S3 API the redirection will not work. So please ensure that you are accessing the object via static website endpoint.
[+] Working with object metadata - System-defined object metadata - https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html#SysMetadata
If you have any further queries, please feel free to reach out to AWS Support along with your specific use-case and details, and we would be happy to assist you further.
[+] Creating support cases and case management - https://docs.aws.amazon.com/awssupport/latest/user/case-management.html
Relevant content
- asked 10 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
Hi, thanks for your time. I neglected to say I was using the static website endpoint, but thanks for the clear answer. It seems in this case I need to reach out to AWS Support for more help.