[eluser]WanWizard[/eluser]
Downside of this solution is that you have to hardcode the URI segments and the query string variable(s) you want to rewrite.
I haven't found a solution to simply do this to the entire query string, regardless of the variables, and just glue it to the URI.