how to define a route in codeigniter code example Example: route codeigniter $route['produk/(:num)/([a-z]+)'] = 'HomeControl/detail_produk/$1';