title: Redirect from http to https not working for not www page
body: <p>I need to redirect all my traffic to https. </p>
  
  <p>I use redirect rules in .htaccess:</p>
  
  <pre><code>RewriteCond %{SERVER_PORT} !^443$ [OR]
  RewriteCond %{HTTPS} =off
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  </code></pre>
  
  <p>It works good for main domain, and almost for all links in mobile subdomain:</p>
  
  <pre><code>http://m.example.com/index.htm
  http://www.m.example.com/index.htm
  http://www.m.example.com/
  </code></pre>
  
  <p>But it doesnt work for:</p>
  
  <pre><code>http://m.example.com/
  </code></pre>
  
  <p>Any suggestions how to fix it?</p>