Q:

How to fix Get method for POST in .htaccess?

I wrote code(shown below) in .htaccess, for remove index.php on URL, but when i click any links on my website, URL shows GET parameters, so how can i change it to POST? 
RewriteCond %{REQUEST_URI} /index\.(php|html|htm)
RewriteCond %{QUERY_STRING} ^\z
RewriteRule ^(.*)$ http://rocketfirm.com/? [R=301,L]

A:

I found a solution of this problem, put this code in .htaccess file
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

it's remove index.php from URL and save post parameters

