title: htaccess redirect to ssl only for certain pages and www non secure for the other pages
body: <p>I need to redirect all requests to the site to www and only certain pages to https without www, since for some reason the ssl certificate bought by our customer doesn't cover www.
  After looking around I managed to accomplish most of it. But what happens is once we have visited a secure url page, the other pages will stay on https.
  Here is what I have so far in the.htaccess:</p>
  
  <pre><code>#Redirect to www
  RewriteCond %{HTTPS} =off
  RewriteCond %{HTTP_HOST} ^[^./]+\.[^./]+$ [NC,OR]
  RewriteCond %{HTTP_HOST} ^([^./]+)\.[^./]+\.[^./]+$ [NC]
  RewriteCond %1 !=www [NC]
  RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  
  
  # Force SSL on checkout login account and admin pages
  RewriteCond %{HTTPS} =off
  RewriteCond %{REQUEST_URI} checkout|login|my-account|administrator|webshop
  RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  RewriteRule ^(.*)$ https://%1/$1 [R=301,L
  </code></pre>
  
  <p>I miss the part that will redirect to www non secure if https is on and not belonging to the listed urls. But I'm not familiar at all with regex and rewrite rules.
  Some help will be greatly appreciated.</p>