I'm using XAMPP to create a local server and noticed that when I visit something like localhost/path I get redirected (301) to localhost/path/
The problem is that I'm trying to send a POST request to localhost/path and after being redirected it turns into a GET request.
Is there a way to prevent such redirect from happening?
It may be worth mentioning that I'm using mod_rewrite in a .htaccess file, but even with all the rules disabled the behaviour remains the same.
Edit
I realized that I had a folder called path and renaming it prevented localhost/path from redirecting.
Still, is there a way to avoid such behivour (not getting a 301 to localhost/path/) when the folder exists with the same name?