I'm setting a index.php script that will take sent POST requests, but when sending such requests the trailing slash is added through a 301 redirect and the POST data is lost.
For instance:
POST request is made to host/test
Server redirects to host/test/
POST data is lost
Note that the request MUST be sent to host/test, not to host/test/.
To fix this, I either need to:
Make so that the POST data is passed along to the redirected url (using the SESSION didn't work as the redirect happens before the script is read)
Stop the automatic redirect that adds the trailing slash from happening (already tried messing with DirectorySlash Off on .htaccess, didn't work)
Something else
Please point me in the right direction.