This looks like the right way to do it.
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} ^http$
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
See AWS Developer Forums: Redirect http into https using load balancer?
This looks like the right way to do it.
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} ^http$
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
See AWS Developer Forums: Redirect http into https using load balancer?