I have a subdomain in Amazon Route53. Let\'s say secure.example.com
If requests come like https://secure.example.com it is ok but I would like to force
The @Jamaurice Holt solution led me to the way but was a bit short
This solution only work with application load balancer, not classic load balancer, but you can migrate to use a more recent app balancer in EC2 > Load balancers > your load balancer > migrate
On the console go to EC2 > Load balancers > your load balancer > listeners
Here you should have 2 rules: HTTP : 80 and HTTPS : 443
You just have to:
edit the HTTP : 80 rule
remove the forward rule and add a redirect rule to port 443
save and you should see something like: