Welcome Guest, Not a member yet? Register   Sign In
Help with routes.php, please
#1

[eluser]indapublic[/eluser]
Hello, all.

I develop multi-language system. I use this solution but I need correction with routes.

My routes.php containg now:

Code:
$route['^(ru|en)/(.+)$'] = "$2";
$route['^(ru|en)$'] = $route['default_controller'];

and mysite.ru/ru/test and mysite.ru/en/test working correctly.

But I want too this behavior:

http://mysite.ru/test -> http://mysite.ru/{default language or language i will set}/test

How I do it?

Thank you


Messages In This Thread
Help with routes.php, please - by El Forum - 12-04-2012, 09:49 PM
Help with routes.php, please - by El Forum - 12-04-2012, 09:50 PM
Help with routes.php, please - by El Forum - 12-04-2012, 09:58 PM
Help with routes.php, please - by El Forum - 12-04-2012, 10:43 PM
Help with routes.php, please - by El Forum - 12-05-2012, 10:26 PM
Help with routes.php, please - by El Forum - 12-05-2012, 11:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB