POST becomes GET after htaccess directives
问题 I am hiding the php file extention using the below directives in Apache htaccess file RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC] RewriteRule ^ %1 [R,L,NC] RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^ %{REQUEST_URI}.php [L] I have a simple html form like this <form action="register.php" method="post"> <input type="text" name="name"> <input type="submit"> </form> And in my PHP page this is how I was earlier checking whether the form has been posted if ($_SERVER["REQUEST