I want to redirect from any direction to our site with HTTPS protocol, but some redirects it\'s not working. I want this:
http://www.site.co
In case you are using One.com as your webhost you should use the following code instead:
RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301] RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]