Redirect to https (.htaccess)


I couldn’t manage to force redirect to https, based on the instructions here and in the .htaccess-file.

After some searching I came across this post:

which solved my problem. (And, according to the comment on Stackoverflow, is also the “new, correct” way of doing it.)

In .htaccess I replaced

RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]


RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

1 Like

Thanks for the solution, this will be fixed as soon as possible.

1 Like