title: .htaccess redirect all POST request with data to a file
body: <p>I have a <code>.htaccess</code> file in a subfolder (www.domain.com/API/) and I need to redirect all POST requests of this subfolder into a file in a subfolder (www.domain.com/API/Sub/manager.php)</p>
  
  <p>I must say all POST requests will have data (2-10 parameters) and all data most be redirect too.</p>
  
  <p>I have read some posts and pages but they cannot solve my situation. </p>
  
  <p>I have this rule:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ https://www.example.net/API/Sub/manager.php [QSA,L]
  </code></pre>
  
  <p>However, I got something like: </p>
  
  <blockquote>
    <p>302 Found --> The document has moved (link to
    ww.domain.com/API/Sub/manager.php)</p>
  </blockquote>
  
  <p>Can somebody tell me what I am doing wrong? </p>
  
  <p>Thank you in advance.</p>
  
  <p>P.S.
  These are some pages I looked into:</p>
  
  <p><a href="https://stackoverflow.com/questions/4638678/redirect-post-htaccess">Redirect POST htaccess</a></p>
  
  <p><a href="https://stackoverflow.com/questions/8826861/seems-like-post-values-are-lost-when-htaccess-rewriterule-used-get-values-are">Seems like POST values are lost when .htaccess RewriteRule used. GET values are OK. How to fix?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/13060355/htaccess-redirect-all-sub-directories-to-file">.htaccess redirect all sub-directories to file</a></p>