I have a PHP MVC framework I've built from scratch which uses the traditional domain.com/controller/action
URL routing. While I'm currently handling the below conversion in the router I'd like to replace them in the URL for cosmetic reasons.
For example:
controller/action?filter=bank
Becomes:
controller/action/filter/bank
I've done a bit of experimentation with a regex but can't seem to find a match. I'm also not sure how to rewrite it using RewriteCond
.
Thanks in advance.