title: Apache Mod_Rewrite - Redirect losing POST data - 405 error
body: <p>Stackoverflow users,</p>
  
  <p>I have an Apache application that needs to accept data POSTed to the following paths:</p>
  
  <pre><code>/sample/HostChange/Submit
  /sample/HostChange/SubmittoAPI
  </code></pre>
  
  <p>I'm currently using the following 301 redirect rules. This is not what I want as as the POST gets redirected and the second request is a GET loosing all the data.  I am seeing the 301 request go the correct url but the second request is a GET and causes a 405 response code. </p>
  
  <p>.htaccess:</p>
  
  <blockquote>
  <pre><code>RewriteEngine On
  Redirect 301 /sample/HostChange/Submit /event
  Redirect 301 /sample/HostChange/SubmittoAPI /date
  </code></pre>
  </blockquote>
  
  <p>I'm sure using a Redirect is the issue. Can someone help me figure out the correct RewriteCondition I need to be using to redirect these POST hits to the new paths but keep the data being submitted to the application.</p>
  
  <p>Thank you mucho. </p>