Tutorial How to force https via .htaccess

API

Staff member
Joined
Nov 17, 2018
Messages
132
Reaction score
30
Points
28
Location
Indonesia
Offline
Code:
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
Top Bottom