title: Mixed Content: The page at / SSL
body: <p>You can specify a redirect to https only two pages of the shop / university, but that does not redirect style css / js files.
  This code works, but at the same time get a lot of errors:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Mixed Content: The page at 'https://www.example.com/shop/' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.example.com/wp-includes/css/admin-bar.min.css?ver=4.4'. This request has been blocked; the content must be served over HTTPS.</code></pre>
  </div>
  </div>
  </p>
  
  <p>If you comment out the last line, the https styles normal, but on the other pages there is no redirect to http</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>#RewriteRule !^(shop|university)(/.*)?$ http://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]</code></pre>
  </div>
  </div>
  </p>
  
  <p>this code in .htaccess
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  
  RewriteCond %{HTTPS} off
  RewriteRule ^(shop|university)(/.*)?$ https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
  
  RewriteCond %{HTTPS} on
  RewriteRule !^(shop|university)(/.*)?$ http://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
  
  &lt;/IfModule&gt;</code></pre>
  </div>
  </div>
  </p>