title: redirect drupal 7 site to https
body: <p>I have Drupal 7 site with default .htaccess file. I need redirect all site possibilities to one https site.<br> What I need is:<br>
  <code>http://example.com -&gt; https://example.com 
  http://www.example.com -&gt; https://example.com 
  https://www.example.com -&gt; https://example.com</code>
  <br>I have tried many options but I still get error: "This Webpage has a redirect loop." 
  <br><br>
  Default .htaccess looks like:
  <a href="http://pastebin.com/gFT5Zxmr" rel="nofollow">.htaccess</a></p>
  
  <p>[Edited] I found solution:<br>
  for remove www and retirect to https: <br><code>RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]&lt;br&gt;
  RewriteRule ^ https%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]</code>
  <br>
  for redirect non www to https:<br>
  <code>RewriteCond %{SERVER_PORT} 80
   RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L]</code></p>