title: nginx rewrite post data
body: <p>I need to preserve the POST data to a different url </p>
  
  <p>The rewrite works but the post data is lost</p>
  
  <p>need to post data from user_info.php to userhistory</p>
  
  <pre><code> location  ~ user_info.php {
    rewrite ^/.* http://testing.com/userhistory  permanent;
   }
  </code></pre>
  
  <p>The data is lost. How can I preserve the data?</p>