I have a problem with Codeigniter routes. I would like to all registered users on my site gets its own \"directory\", for example: www.example.com/username1
,
Another way would be declaring an array with your intenal controllers and redirect everything else to the user controller like this in your routes.php file from codeigniter:
$controllers=array('admin', 'user', 'blog', 'api');
if(array_search($this->uri->segment(1), $controllers)){
$route['.*'] = "polica/ogled/$1";
}