title: RewriteCond HTTP_HOST still passes
body: <p>I'm building a preprod environment where the client and developpers will be able to check that everything is working fine for their website they are about to put up but i must disable all HTTPS redirection because at this point it would fall in the PROD site wathever the HOSTNAME is sent in the request.</p>
  
  <p>This is one of the examples i'm using:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} (www\.)?domain\.com
  RewriteCond %{HTTP_HOST} ^s\.domain\.com
  RewriteCond %{SERVER_PORT} 80
  RewriteCond %{REQUEST_URI} !^/?basket/$
  RewriteCond %{REQUEST_URI} !^/?basket/add/
  RewriteCond %{REQUEST_URI} !^/?basket/delete/
  RewriteCond %{REQUEST_URI} !^/?basket/modify/
  RewriteCond %{REQUEST_URI} !^/?basket//add/
  RewriteCond %{REQUEST_URI} !^/?basket//delete/
  RewriteCond %{REQUEST_URI} !^/?basket//modify/
  RewriteCond %{REQUEST_URI} !^/?basket/info_panier.js
  RewriteRule ^/?basket/.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
  </code></pre>
  
  <p>Problem is, even if i visit:</p>
  
  <pre><code>http://s.domain.com/basket//coordonnees/login/
  </code></pre>
  
  <p>It still redirects me to the HTTPS version, but i have a rewrite condition on the s.domain.com saying to skip this rule... What am i doing wrong?</p>
  
  <p>CrazyCoder</p>