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

Pascual Bernardo jr
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

May 10, 2020, 08:39 PM

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]