We are using .htaccess
to rewrite URLs. For example we use the following method:
rewriterule ^profile/([^?/]+)/?$ file.php?name=$1 [NC]
and on file.php
we use the following GET method to receive value from name query string
$name=$_GET['name'];
Now the issue is I do not want to use this GET method. I do not want to use query string method. I want to use form POST method in .htaccess
file.
I tried the following method:
RewriteCond %{REQUEST_METHOD} !^(POST)$
but I do not know how to use this method.