$route['*(:any)'] = 'user/profile/$1'; // May need to change the first number. $profie = $this->uri->segment(1, 0);