I tried to redirect an object by the static website hosting method, but it's not redirecting. How can I solve this? Below the steps I took. Both PDF files are in same S3 bucket. I want:
From
https://bucket-name.s3.eu-west-3.amazonaws.com/downloads/System+drawings/Product_8_system_drawing.pdf
To
https://bucket-name.s3.eu-west-3.amazonaws.com/downloads/Manuals/EN/installation-manual-product-6.pdf
Step 1
I went to the specific bucket and clicked the 'Properties' tab. I editted the Static website hosting. I putted 'Static website hosting' on 'Enable', 'Hosting type': 'Host a static website', 'Index document': 'index.html'. I left all optional settings blank. I didn't uploaded a real index.html file beceause I read it's not necessary. I finalised this step by pressing 'Save changes'.
Step 2
I went to the specific object I wanted to redirect. I scrolled to 'Metadata' and pressed 'Edit'. After that I choosed 'Add metadata'. This is what I entered:
Type: System defined
Key: x-amz-website-redirect-location
Value: /downloads/Manuals/EN/installation-manual-product-6.pdf
I saved changes but it is not working. I tried to remove the first existing metadata row also (System defined, Content-Type, application/octet-stream) but it didn't helped. What am I missing?
Thanks, I updated my question. It's a default option when type = System defined, so it is not the case for my problem.