[eluser]BrianDHall[/eluser]
[quote author="tommizzle" date="1257458339"]Thanks BrianDHall.
So is there any other way to run the username off the root?
Thanks,
Tom[/quote]
Sure, you need a sort of negative route. You define a route with regex that says "if I am not asking specifically for these controllers, then reroute it to this".
I just so happen to do exactly this. Here you go:
Code:
// Route everything but mentioned controllers to default controller, allowing short urls to work.
$route['^(?!controller|controller|controller).*'] = $route['default_controller'] . "/$0";
So stick in what you do not want rerouted, and then everything else will be rerouted to whatever you want. So long as there isn't someone with a username the same as one of your controllers (the easiest way to handle this is manually create a user with the username of each of your controllers, to reserve it and guarantee you never have a conflict), it should work as you think it would.