title: HTTP to HTTPS redirect not working with .htaccess
body: <p>I am trying to force my website to redirect http traffic to the https site and I have verified that the htaccess file is getting accessed but the redirect is not occurring. I have a valid cert for the site and the https version works fine but whether I type in www.mywebsite.com or <a href="http://www.mywebsite.com" rel="noreferrer">http://www.mywebsite.com</a> or website.com I still get taken to the HTTP version. Any suggestions?  </p>
  
  <p><strong>.htaccess file</strong></p>
  
  <pre><code># Use PHP56
  AddHandler application/x-httpd-php56 .php
  
  # Always Redirect to HTTPS
  RewriteEngine On
  RewriteCond %{SERVER_PORT} !=443
  RewriteCond %{HTTP_HOST} ^(www\.)?mywebsite\.com$ [NC]
  RewriteRule ^$ https://mywebsite.com%{REQUEST_URI} [R=301,L]
  </code></pre>