I need a codeigniter route so all of the following urls:
admin/users/page/:num
admin/accounts/page/:num
members/results/page/:num
products/page/:num
are forwarded to
admin/users/index
admin/accounts/index
members/results/index
products/index
respectively. I'd like just one regexp which could do the trick rather than me setting the routes manually each time.
To be specific, any url which ends in page/:num
should be forwarded to its respective controller's index method. And by :num
I mean any number.
Is this possible?