I am working on a social network project based on codeignitor.
What I am trying to do is build a user profile url like:
http://domain.com/userid
I have tried
$route['(:any)'] = 'profile/user/$1';
to redirect url but no luck. Does anyone have an idea of how to achive this without using .htaccess?