How to rewrite a url like:
http://domain.com/class/method/parameter1/parameter2/…/parameterN
to
http://domain.com/index.php?c=class&m=method&p1=parameter1&…&pN=parameterN
The main idea is to create the possibility of using unlimited number of query parameters.
Thanks.
It is possible to do that with Apache’s mod_rewrite module like this:
But it would definitely be easier to do that with PHP:
Then you just need one single rule to rewrite the requests: