title: redirect to HTTPS if not HTTPS by .htaccess
body: <p>I want to redirect user to HTTPS (<strong><a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a></strong>)
  if they come with
   - example.com
   - www.example.com
   - <a href="http://example.com" rel="nofollow noreferrer">http://example.com</a>
   - <a href="http://www.example.com" rel="nofollow noreferrer">http://www.example.com</a></p>
  
  <p>I already used this code on .htaccess. but it's not working for, www.example.com, <a href="http://www.example.com" rel="nofollow noreferrer">http://www.example.com</a></p>
  
  <pre><code># BEGIN SSL Redirect
  RewriteEngine on
  # force ssl
  RewriteCond     %{SERVER_PORT} ^80$
  RewriteRule     https://www.%{SERVER_NAME}%{REQUEST_URI} [L,R]
  
  RewriteCond %{HTTP_HOST} ^calbel\.com
  RewriteRule .* https://www.%{SERVER_NAME}%{REQUEST_URI} [R,L]
  # END SSL Redirect
  </code></pre>