title: .httpaccess - redirect from http to https protocol only if I'm on the general domain
body: <p>How I can redirect from http to https protocol only if I'm on the general domain (skiped subdomains). I tried using this redirect, but this is redirecting too subdomains.  </p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  </code></pre>