URI Routing with Multilingual and Controllers in Subfolders


I've set up multilingual web site with the following:

Which meant that I had to add the following multilingual routing to my routes file:

| Default routes

$route['default_controller'] = "home";
$route['404_override'] = '';

| Used for multilingual

// URI like '/en/about' -> use controller 'about'
$route['^(en|es|fr|it|de)/(.+)$'] = "$2";

// '/en' and '/fr' URIs -> use default controller
$route['^(en|es|fr|it|de)$'] = $route['default_controller'];

This all worked fine, however after that I decided that I want to have my admin and my client controllers seperate (took Phil Sturgeons sound advice http://ellislab.com/forums/viewthread/102960/) so in my controllers directory I created an 'admin' and 'client' folder and added the relevent controllers into each.

Now however, if I want to access the client side of the site I have to access the following URL:


What I want is for the 'client' bit to not be there. Is there any way for this to do this without effecting the multilingual set up?

Hope someone can help or give me some idea.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.