title: Apache RedirectMatch issue with relative path
body: <p>Recently, I upgraded my Apache server from 2.0 to 2.2.24, but I have an issue with <code>RedirectMatch</code>.</p>
  
  <p>My old <code>RedirectMatch</code> directive:</p>
  
  <pre><code>RedirectMatch ^/abc/abcd  /otherurl/someaction
  </code></pre>
  
  <p>In Apache 2.0, if we use HTTPS to access, eg. <code>https://www.example.com/abc/abcd</code>, it will redirect to <code>https://www.example.com/otherurl/someaction</code>.</p>
  
  <p>But in apache 2.2.24, it returns <code>http://www.example.com/otherurl/someaction</code> (HTTP, not HTTPS) - it seems Apache has changed the request schema.</p>
  
  <p>If I check the HTTP response by http watch, I find a difference between 2.0 and 2.2.24.</p>
  
  <p>Under Apache 2.0 the <code>Location</code> HTTP response header is <code>/otherurl/someaction</code> - a relative path URL.</p>
  
  <p>But on Apache 2.2.24 the <code>Location</code> header is <code>http://www.example.com/otherurl/someaction</code> - the full absolute URL.</p>
  
  <p>Any idea for this issue?</p>