title: .htaccess redirect to external URL while hiding redirect
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1807925/htaccess-redirect-to-external-url-while-hiding-redirect">.htaccess redirect to external URL while hiding redirect</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way to rewrite to an external site while hiding the new address?</p>
  
  <pre><code>RewriteRule (.*) http://www.second-website.com/index.php\?string=$1 [NC,L]
  </code></pre>
  
  <p>The rule works perfectly for a page on the same server, but on a different server it changes the address as if I had used <code>[L,R=301]</code>.</p>
  
  <p>EDIT:
  I am using a reverse proxy, but getting a 500 error.</p>
  
  <pre><code>ProxyRequests Off
  
  &lt;Proxy *&gt;
  Order deny,allow
  Allow from all
  &lt;/Proxy&gt;
  
  ProxyPass /foo http://www.second-website.com/foo
  ProxyPassReverse /foo http://www.second-website.com/foo
  </code></pre>