6
htaccess redirect http to https
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
Interserver | Standard & VPS Cloud Hosting | $2.50 /Month
Flexible VPS hosting platform to deploy your online projects.
Economical and balanced between processor cores, memory and storage
rated 6 times
(6)
(0)
comments: 1 / hits: 2646
/ 5 years ago, sat, jun 23, 18, 11:07:37
More From
» Apache
Comments
3
This code work for me
Code:
[#9] Friday, July 27, 2018, 2:34:15

commented 5 years ago
Ronald