title: http to https htacces - redirected you too many times
body: <p>I already have base url <code>www.example.com</code> and I want to have base url like this: <code>https://www.example.com</code></p>
  
  <p>This is in my httaccess file:</p>
  
  <pre><code> RewriteEngine On
   RewriteCond %{HTTPS} off
   RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  </code></pre>
  
  <p>But when i access to my page with Chrome, its gives error: </p>
  
  <pre><code>The example.com Web has redirected you too many times.
  </code></pre>
  
  <p>After that code I have some other codes in <code>.htaccess</code> - maybe that cause problem?</p>
  
  <pre><code> &lt;IfModule mod_rewrite.c&gt;
    -----
    &lt;/IfModule&gt;
  </code></pre>
  
  <p>How to solve this error?</p>