title: WordPress Multisite SSL htaccess
body: <p>I would like to redirect from non-https to https on my site and subdomains, but I'm having issues to solve it.</p>
  
  <p>This is my setup:</p>
  
  <pre><code>www.domain.de
  www.sub.domain.de
  www.sub2.domain.de
  www.sub3.domain.de
  </code></pre>
  
  <p>I can open all links by https and it works, but due duplicate content I would like to use https only.</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{SERVER_PORT} !=443
  RewriteRule ^(.*)$ https://domain.de/$1 [R=301,L]
  </code></pre>
  
  <p>this is my htaccess so far... but it redirects the subdomains to the primary domain :(</p>
  
  <p>any ideas?</p>