title: mod_rewrite causing $_POST to not get to PHP
body: <p>Firstly, here is my .htaccess:</p>
  
  <pre><code>RewriteEngine On
  Options FollowSymLinks
  
  # check if url ends in a slash and if it does redirect to same url without one
  RewriteCond %{REQUEST_URI} !-d 
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*([^/.]+))/\ HTTP/
  RewriteRule ^(([^/]+/)*([^/.]+))/$ http://localhost/example/$1 [R=301,L]
  
  # extionless url rewrite for urls in form example.com/cmd
  RewriteRule ^([^/.]+)$ index.php?cmd=$1 [L,QSA]
  
  # extionless url rewrite for urls in form example.com/cmd/action
  RewriteRule ^([^/]+)/([^/.]+)$ index.php?cmd=$1&amp;action=$2 [L,QSA]
  
  # extionless url rewrite for urls in form example.com/cmd/ajax
  RewriteRule ^([^/]+)/([^/]+)/([^/.]+)$ index.php?cmd=$1&amp;action=$2&amp;ajax=$3 [L,QSA]
  </code></pre>
  
  <p>So this works for url rewriting fine. But when I look in Firebug at my request after submitting a form to PHP it is status 303 Move Permanently. I'm fairly certain the problem is this line:</p>
  
  <pre><code>RewriteRule ^(([^/]+/)*([^/.]+))/$ http://localhost/example/$1 [R=301,L]
  </code></pre>
  
  <p>But I don't know how to fix it. I want to keep the mod_rewrite doing exactly what it is doing functionality wise, but I need this problem fixed.</p>
  
  <p>Thanks for the help!</p>
  
  <p>EDIT: I also want to mention, that if I send data from JavaScript to PHP using jquery .ajax and have type to post, it does work. And also, $_GET works no matter what. Just $_POST not working when sent from HTML to PHP.</p>