I have a form that uses the POST method to send data. The POST destination is configured as “http://www.example.com/form”. However, the actual POST file is “http://www.example.com/form/index.php”.
Because the action does not include the file name (index.php), the POST variables are not making it to the page. (This said, GET requests seem to work fine.)
Short of changing the action and/or method, is there any fix for this? Can I implement a mod_rewrite rule to pass the POST values along to the page?
I could not reproduce this with
But I was able to reproduce it with
In the second case my Apache send as Moved-Permanently redirect to
/test/and the POST variables are lost.This redirect is done by mod_dir.
If you disable
mod_dirlinks to a directory without a trailing slash a simply not working any more.The only advice I can give you is to fix the form’s action.