+ Reply to Thread
Results 1 to 2 of 2

Thread: How to properly force HTTPS to .htaccess

  1. #1
    Senior Member
    Join Date
    Mar 2016
    Posts
    181

    Exclamation How to properly force HTTPS to .htaccess

    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

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    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]

+ Reply to Thread