How can I create dynamic, arbitrary routing with codeigniter? So, the default routing system(controller/method) works for me, for the most part. However, I'd like to give the website owner the ability to create arbitrary friendly URLs for any controller within the website.
For example, if this website has a controller that handles articles, a normal address of any given article would be
example.com/articles/read/23421
and if it had another controller that dealt with products, a given product would typically live at
example.com/products/view/234234
However, I want, in addition to this, to give the website owner the ability to say "ok, so article 23421 will now be accessible in
example.com/my-vacation-in-vegas
and product 234234 will live in
example.com/flat-screen-tv
Is there anything that I could do to achieve this functionality? Presently, the routing system, as I understand it, is fixed and I would have to hardcode it in routes.php for every item like that.
Thanks!