I am trying to control my routing in codeigniter.
I have my url which is: www.domain.com/all-artists. If I am going to accept the dash controller, I need to configure the route.php below:
<?php $route['all-artists'] = "all_artists";
The above routing works. Now, I want to visit this url: www.domain.com/all-artists/x
The "x" method from the uri above is dynamic, which means that I can change it from a-z. However, this url returns an error display.
Do you know how to route these urls that can accept even segment(1) with dashed and contains dynamic methods?