[eluser]easymind[/eluser]
This seems to do the same:
Code:
$lang = "[a-zA-Z]{2}?";
$route["$lang/(:any)"] = "$1";
But it messes op the arguments passed to the functions (like your code does too on my system), so this works better:
Code:
$lang = "[a-zA-Z]{2}?";
$route["$lang/(:any)"] = "/$1";
But that one doesn't seem to work for controllers inside subfolders...