title: apache rewrite rules are not working after adding proxy pass
body: <p>i am trying to rewrite the url in apache which internally redirect the requests to apache tomacat</p>
  
  <p>Here is my httpd.conf code</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  
      ProxyRequests Off
      ProxyVia Off
      ProxyPreserveHost On
      ProxyPass / http://localhost:8080/myapp/my.html
      ProxyPassReverse / http://localhost:8080/myapp/my.html
  
      RewriteEngine on 
      RewriteRule ^/(.*)/$ http://localhost:8080/myapp/my.html?product=$1 [QSA]
   &lt;/IfModule&gt;
  </code></pre>
  
  <p></p>
  
  <p>so basically what i am trying to do is if i enter localhost/myapp then it should redirect me to localhost:8080/myapp/my.html</p>
  
  <p>Next is if i enter the url localhost/myapp/8 it should redirect internally to localhost:8080/myapp/my.html?product=8.</p>
  
  <p>Now the problem is ProxyPass is working absolutely fine. But the rewrite rule is showing 404 error.
  If i remove the ProxyPass code then the same rewrite rule works but it shows the modified url in the browser. 
  So i want to know where should i place RewriteRule to make it work with ProxyPass and y the rewrite rule is showing the modified urls?</p>