S3 static hosting redirection not working

0

I set up three buckets as described in AWS doc (example.com, www.example.com, and logs.example.com), substituting my domain name. i set up example.com as static hosting and copied the bucket policy as described. i then set up www.example.com as static hosting with redirect. no matter what i enter for the endpoint here, it changes to www.example.com. i also tried this with dummy bucket names with same result. when i click on the endpoint in the www bucket, i get page not found. this is for a school project so i don't want to incur costs.

2 Answers
0

Is it these instructions you followed? - https://docs.aws.amazon.com/AmazonS3/latest/userguide/how-to-page-redirect.html

There is says when you set up the redirect destination, "In the Host name box, enter the website endpoint for your bucket or your custom domain. For example, if you are redirecting to a root domain address, you would enter example.com". Is this "Host name box" where it always changes to www.example.com no matter what you enter?

EXPERT
answered a year ago
0

yes, you are correct. no matter what i type in the host name, when i click save it shows the www bucket

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions