I'm using the following .htaccess to redirect example.com or www.example.com
to http://www.example.com
.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
If the address is example.com/login I would to redirect to https instead of http. How to do that?
Thank you.
Best Answer