I need some help generating a mod_rewrite regex pattern for a url that will have an unknown number of variables.


Here's an example:

http://www.darkentity-static.info/?R...c=css&f0=style
would need to become:
http://www.darkentity-static.info/DA...i/14/css/style

I'd also have:

http://www.darkentity-static.info/?R...ile&f2=contact
which would need to become:
http://www.darkentity-static.info/DA...mobile/contact

Any ideas on how to do this?

The constant variables will be RF, loc, jc, c, and ex.
The variables that will have an unknown amount are the f(n) variables. Could be 1, or could 15.