title: Apache Reverse Proxy - Stop Trailing Slash Redirection
body: <p>I'm migrating a site running static HTML on a Sun One (iPlanet) 6.1 to a Drupal site on Apache.</p>
  
  <p>There is a requirement to keep the old server running and serving old content until it can be moved into Drupal.  I figured the easiest way is to have some reverse proxy entries in Apache that point to this old content.</p>
  
  <p>Here is what I have in the httpd.conf at the server context level.</p>
  
  <pre><code>RewriteEngine On
  RewriteLogLevel 9
  RewriteLog "/var/log/httpd/rewrite_log"
  RewriteRule offices/ist/?(.*)$ http://oldserver/offices/ist/$1 [P]
  &lt;Location /offices/ist/&gt;
  ProxyPassReverse /
  &lt;/Location&gt;
  </code></pre>
  
  <p>When I make a request like this everything works OK.</p>
  
  <pre><code>http://newserver/offices/ist/somedir/
  </code></pre>
  
  <p>If I make the same request (without the trailing slash) it 302 redirects using the old server's name.</p>
  
  <pre><code>http://newserver/offices/ist/somedir    =&gt;  Redirect to http://oldserver/offices/ist/somedir/
  </code></pre>
  
  <p>Shouldn't Apache catch this redirect before it's sent back to the client?</p>
  
  <p>Can I get Apache to rewrite these requests before they're sent to the old server?</p>