my input url is
https://example.com/path/typeX?dataY=mydata
want output as
https://example.com/path/myfile.php?reqType=typeX&dataY=mydata
Please help me , I am new to url re-writing, my serrver is apache with php installed, thanks in advance.
I tried this
RewriteEngine On RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^path/([^\.]+)$ path/myfile.php?reqtype=$1&%1
it is giving correct result on https://htaccess.madewithlove.be/ but not working on server, server says the requested url was not found