title: Noindex Session ID pages with htaccess
body: <p>I have many pages with the parameter <code>SID=</code> indexed in Google which I would like to <code>noindex</code>, eg <code>https://www.example.com.au/checkout/cart/?SID=c79e6055436bf371a02f4d2601cecd03</code></p>
  
  <p>I have used the following code in htaccess but it doesn't seem to match?</p>
  
  <pre><code>RewriteCond %{QUERY_STRING} ^SID=$
  RewriteRule ^(.*)$ - [env=NOINDEXFOLLOW:true]
  Header set X-Robots-Tag "noindex, follow" env=NOINDEXFOLLOW
  </code></pre>