I need to preserve the POST data to a different url
The rewrite works but the post data is lost
need to post data from user_info.php to userhistory
In my conf I use try_files with regex
for example
location /yourfolder/(?.*) { try_files $uri /yourfolder/index.php?r=$specialRequest; return 307 https://$host/yourfolder/index.php?r=$specialRequest; // it also work }