[eluser]xwero[/eluser]
If the frontend is all client routes and the backend is found in one directory the routes.php file could look like this.
Code:
$route['(admin)(.*)'] = '$1$2';
$route['(.+)'] = 'pages/client/$1';
And that should be all the router needs to know. Then in your controller you can do a search for the user added segments.
Code:
if( ! $this->model->route_exists($this->uri->uri_string()) )
{
// 404
}
else
{
// build page
}