URI Routing — CodeIgniter 3.1.11 documentation
URI Routing ¶ Typically there is a one-to-one relationship between a URL string and its corresponding controller class/method. ... but in the example above it instead has a product ID. To overcome this, CodeIgniter allows you to remap the URI handler. Setting your own routing rules ...