I've been using isapi_rewrite on home windows but am attempting to move to linux / apache and also have hit an issue with transforming my existing rule. I am following the following url rewrite:
Customer / provided sample url: *.php/param1/value1/param2/value/2/param3/value3/paramx/valuex
Matched up to: whatever.php?value1=param1&param2=value2&param3=value3&paramx=valuex
I had been formerly by using this rule in isapi_rewrite:
RewriteEngine on RewriteRule ^(.*?\.php)/([^/]*)/([^/]*)(/.+)? $1$4?$2=$3 [NC,LP,QSA]
But LP (Loop) isn't an apache mod_rewrite flag and that i can't see how to exchange this rule having a appropriate one out of mod_rewrite.
The primary factor would be that the quantity of params/values is unknown so it must replace all ?, &lifier, and = with /'s. I appreciate i possibly could result in the pattern a great deal cleaner by getting rid of the params and also the file title but things i actually want to do is obtain the application moved to linux and dealing prior to making changes to the way the application references links.