Redirect HTTP > HTTPS when port is always 80
snippet in htaccess

Redirect HTTP > HTTPS when port is always 80

user863

RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]