title: Redirect HTTP to HTTPS for ALL Subdomains
body: <p>I'm trying to write a rule that means if anyone goes to any address across the whole domain, it will replace http: with https:</p>
  
  <p>My current rule is;</p>
  
  <pre><code>RewriteCond %{SERVER_PORT} 80
  RewriteRule ^(.*)$ https://mydomain.co.uk/members$1 [R,L]
  </code></pre>
  
  <p>This works for my main domain but I have different subdomains which I need to write to work in the same way. I'd ideally not like to write a rule for each of the subdomains.</p>
  
  <p>If I go to <strong>https</strong>://example.mydomain.co.uk/members it shows the correct content but if I got <strong>http</strong>://example.mydomain.co.uk/members it redirects to <a href="https://mydomain.co.uk" rel="nofollow noreferrer">https://mydomain.co.uk</a></p>
  
  <p>Thanks in advance for your help! </p>
  
  <p>EDIT: I forgot to mention, this rule is in my /members directory not root. </p>