I have a problem with redirects in cloudfront.
I follow this steps after this:
https://stackoverflow.com/a/42869783/3332734
cloudfront
I pointed my two buckets.hosting website
and redirect with bestdestiny.panel.adm.br
with https
prefixSee my buckets config below:
and each bucket has the respective policy rule:
And this is my cloudfront config below:
but...
It appears that the root of your issue is a redirect loop. You've set up CloudFront to direct requests to an S3 bucket, and simultaneously, you've instructed the S3 bucket to redirect requests back to the very same CloudFront distribution. This creates a continuous loop of redirects.
While you mentioned two buckets in different regions, it's unclear why they were set up this way, especially since the reference you provided is about creating two separate sites (one with www
and another without).
If your intention is not to create two sites, it might be best to reconsider the redirect configuration in your S3 bucket.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With