I have controller named “profile” and the URL for user profile is www.example.com/profile/user
I am already using the rerouting of codeigniter in the routes file
You can use this in a route file:
$route['(:any)'] = "controller_name/$1"; $route['(:any)/(:any)'] = "controller_name/$1/$1"; $route['(:any)/(:any)/(:any)'] = "controller_name/$1/$1/$1";