title: mod_rewrite keep referrer by rewriting to https
body: <p>I redirect all HTTP requests to HTTPS with mod_rewrite.
  The HTTP_REFERER header is lost and my analyse tool can not recognize from where my users came from.</p>
  
  <pre><code>#RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [L,R]
  </code></pre>
  
  <p>How can I keep the referer with this redirection?</p>
  
  <p>My application has only HTTPS pages and no HTTP direct access.</p>