title: How to change a cookie name with mod_rewrite?
body: <p>I'm trying to change the name of a cookie that's set by an AWS ELB, but keep its value with a rewrite condition and rewrite rule.</p>
  
  <p>Here's what I've managed so far:</p>
  
  <pre><code>RewriteCond %{HTTP_COOKIE} AWSELB=(^BD.*) [NC]
  RewriteRule ^(.*) - [CO=SIMELB:%1:.amazonaws.com:lifetime:-1]
  </code></pre>
  
  <p>Obviously the <code>RewriteRule</code> is incorrect, but could someone help me with the right syntax?</p>