I would like all my URLs in codeigniter to start with the first URI segment to be passed to the controller as a parameter.
Here is my use case:
For the url: http://www.example.com/site/page/1
The “Site” would be a parameter passed to the controller “page”, “1” is also a parameter (and anything after it).
Would a Mod_Rewrite be more appropriate than codeigniter routing?
You can write it in routes for particular page like