I'm using htaccess to change my url to remove .php from url.
for example to change: www.example.com/insert.php to www.example.com/insert but when it happens the posted parameters doesn't exist in redirected request. "i'm using post method to send data to insert.php" How to solve this issue?
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ /$1.php [NC,L]