0

I have an AWS loadbalancer with a certificate routed from www.example.com that works fine using HTTPS. On a desktop-top browser example.com will automatically route to www.example.com. On a phone example.com doesn't add the www and loses its HTTPS secure connection. Is there a way to fix it? The URL on the certificate is formatted like www.example.com

dassoop
  • 11
  • 2

1 Answers1

1

You can setup AWS load balancer to redirect HTTP to HTTPS by adding listeners: https://aws.amazon.com/premiumsupport/knowledge-center/elb-redirect-http-to-https-using-alb/

Alternatively, you could make these redirects happen as it hits the application server (using IIS for example):

Http => Https https://www.google.com/amp/s/www.ssl.com/how-to/redirect-http-to-https-with-windows-iis-10/amp/

Non www to www https://weblogs.asp.net/owscott/iis-url-rewrite-rewriting-non-www-to-www

Dean O'Brien
  • 335
  • 2
  • 11
  • Ty for the answer. So http://www.example.com does route to https://www.example.com. Without the www neither htttp or https will connect. – dassoop Oct 24 '21 at 23:54
  • Edited answer to show non www as well – Dean O'Brien Oct 25 '21 at 06:57
  • This ended up working fine. When I requested the certificate I needed to add a second domain for the www version. They both get routed to the load balancer and the http version redirects to the https. Thanks – dassoop Nov 06 '21 at 22:31