title: Redirect to HTTP non-www to HTTPS www htaccess
body: <p>I want to redirect from any direction to our site with HTTPS protocol, but some redirects it's not working. I want this:</p>
  
  <ul>
  <li><code>http://www.site.co</code> TO <code>https://www.site.co</code></li>
  <li><code>http://site.co</code> TO <code>https://www.site.co</code></li>
  </ul>
  
  <p>This is my htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301] 
  
  RewriteCond %{HTTP_HOST} !^www\.
  RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
  </code></pre>
  
  <p>The second rule it's not working. It going to another direction inside our site, and it isn't redirect to HTTPS site.</p>