【nginx重写为干净的网址】教程文章相关的互联网学习教程文章

nginx重写发布数据【代码】

我需要将POST数据保存到不同的URL 重写有效但后期数据丢失 需要将数据从user_info.php发布到userhistorylocation ~ user_info.php {rewrite ^/.* http://testing.com/userhistory permanent;}数据丢失了.我该如何保存数据?解决方法:基本上,您希望使用301 Moved Permanently重定向自动重定向POST请求. 然而. HTTP Specifications特别禁止此类重定向,其中规定:If the 301 status code is received in response to a request othe...