title: Is it possible to redirect post data?
body: <p>I have a website where all requests are redirected silently (via <code>.htaccess</code>) to <code>index.php</code> and then PHP is used to show the correct page (by parsing the <code>REQUEST_URI</code>).</p>
  
  <p>I was wondering if it's possible to submit POST data to a fake address too?</p>
  
  <p>I've currently got my form like so...</p>
  
  <pre><code>&lt;form action="/send-mail" method="post"&gt;
  </code></pre>
  
  <p>And my <code>.htaccess</code> rule is...</p>
  
  <pre><code># redirect mail posting to index
  RewriteRule send-mail index.php?send-mail [NC,L] 
  </code></pre>
  
  <p>My <code>index.php</code> checks <code>isset($_GET['send-mail'])</code> which works fine.</p>
  
  <p>This however seems to drop off all the POST data that should be sent to it.</p>
  
  <p>Is there a way to keep the post data? I don't want to use GET because it can't send as much information, though it might not be an issue with a simple inquiry form.</p>
  
  <p>Here is my <code>.htaccess</code> for redirecting to <code>index.php</code></p>
  
  <pre><code># serve files and dirs if they exist please, otherwise send to index
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule . index.php
  </code></pre>