In my MVC application I use a uri router than determines which controller and action to use and detects GET parameters from the uri. I've written it so that it will accept both these forms:
http://localhost/controller/action/param1Name/param1Value
http://localhost/controller/action?param1Name=param1Value
Now what I'd like to do is use mod_rewrite to redirect the ?p=v
form to the /p/v
form (reasoning is purely cosmetic, GET forms use the ?x=y
form). I'm completely stuck with how I'd do this however - I have an idea I need to use ${QUERY_STRING}
but I'm not sure how.