title: Redirect POST htaccess
body: <p>This question is very similar to: <a href="https://stackoverflow.com/questions/358263/htaccess-is-it-possible-to-redirect-post-data">Is it possible to redirect post data?</a> (asked eariler) but that answer does not seem to work for me.</p>
  
  <p>I have a form:</p>
  
  <pre><code>&lt;form action="http://a.test.com/contact" name="contact" method="post"&gt;
  </code></pre>
  
  <p>and inside of a add-on domain, (test.com is an addon), there is a subdomain (a.), and inside of there I have a file item.php, and .htaccess</p>
  
  <p>my htaccess is as follows:</p>
  
  <pre><code>RewriteEngine On
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^([^/]+)/$ $1.php 
  
  # Forces a trailing slash to be added
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
  RewriteRule (.*)$ /$1/ [R=301,L]
  
  #normal rewrites
  RewriteRule ^[~|-]?([a-zA-Z0-9]+)[/]*$ item.php?user=$1 [NC,L]
  </code></pre>
  
  <p>note: I left it as [NC,L] because when I changed it to [NC,P] it gives me a 500 server error.</p>
  
  <p>and my item.php</p>
  
  <pre><code>&lt;?php
  echo "&lt;pre&gt;";
  print_r($_POST);
  echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>and no matter what the form contains, the $_POST is blank... however, if I do <a href="http://a.test.com/item.php?user=contact" rel="nofollow noreferrer">http://a.test.com/item.php?user=contact</a> as the action.</p>
  
  <p>all goes well. POSTing skips the htaccess, and the solution on SO doesn't seem to work.</p>
  
  <p>Thanks in advance</p>