02-07-2011, 12:01 PM
[eluser]millo[/eluser]
Hi,
I've set up multilingual web site with the following:
http://maestric.com/doc/php/codeigniter_i18n
Which meant that I had to add the following multilingual routing to my routes file:
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.
Hi,
I've set up multilingual web site with the following:
http://maestric.com/doc/php/codeigniter_i18n
Which meant that I had to add the following multilingual routing to my routes file:
Code:
/*
| 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:
Code:
http://dev1.local/en/client/home
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.