PDA

View Full Version : How to properly force HTTPS to .htaccess



PQB
May 10, 2020, 09:53 AM
Hello guys. How can i properly force the HTTPS to .htaccess? upon trying several codes its always ends up to error.

Thank you in advance

Rudi
May 10, 2020, 08:39 PM
Hello,

find a line:

RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI}/ [NC,L,R=301]

and change it to:

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}/ [NC,L,R=301]