I have a .htaccess
file in a subfolder (www.domain.com/API/) and I need to redirect all POST requests of this subfolder into a file in a subfolder (www.domain.com/API/Sub/manager.php)
I must say all POST requests will have data (2-10 parameters) and all data most be redirect too.
I have read some posts and pages but they cannot solve my situation.
I have this rule:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ https://www.example.net/API/Sub/manager.php [QSA,L]
However, I got something like:
302 Found --> The document has moved (link to ww.domain.com/API/Sub/manager.php)
Can somebody tell me what I am doing wrong?
Thank you in advance.
P.S. These are some pages I looked into:
Seems like POST values are lost when .htaccess RewriteRule used. GET values are OK. How to fix?