title: rewriterule for Apache to do reverseproxy
body: <p>I am running my Apache server with public DNS say <code>www.siteA.com</code>. I am hosting one internal site which is <code>www.siteB.com</code>.</p>
  
  <p>I want to rewrite rule in .htaccess of my server so that if anytime a request comes to <code>www.siteA.com/getData/mydata.php</code> it proxies this request to <code>www.siteB.com/getData/mydata.php</code></p>
  
  <p>I have written this rule in siteA .htaccess:</p>
  
  <pre><code>RewriteCond %{REQUEST_URI} ^/(getData.*)
  RewriteRule (.*) http://www.siteB.com/$1 [P]
  </code></pre>
  
  <p>But I get server internal error. What could be possible reason for this. How can I achieve this proxy?</p>
  
  <p>i have enabled proxy_module and proxy_http_module. Do i need to write anything else to get proxy working?</p>
  
  <p>Thanks
  k2G</p>