I have an MVC PHP application and in xampp works great, but in linux hosting is not working properly and when it comes to send POST data via form the htaccess (without any order) gives a 301 redirect and the POST data is lost forever...
here is my htaccess:
Options -MultiViews
RewriteEngine On
RewriteBase /devel
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
With browser i can see that there is a 301 for post data and 200 (ok) for get data...
please anyone knowr why i have this 301 redirect before the normal redirect? In my script there is no header() function (not in the form nor in the destination page of course) and my hosting (Aruba.it) doens't have the mod_proxy enabled, so i can't use P flag for POST redirecting...
Ah i tried also
RewriteCond %{REQUEST_METHOD} !POST
but without any result.
Tank for any reply!!!