Hey guys, I have got a little problem using the CodeIgniter route function.
I use the URI_Language_Identifier extension and I want to reroute all the requests for "lang/login" (e.g. en/login or de/login) to user/login I tried to use the routes function as follows, but it does not work:
$route['(\w{2})/login'] = "/user/index";
this however does work:
$route['en/login'] = "/user/index";
$route['de/login'] = "/user/index";
but the working version is pretty bad, it will produce redundant code and you have to change to much if you want to add a new language.
I hope someone has an intelligent answer, as usual. Thanks in advance.