uri routing problem |
[eluser]fivefinger-bd[/eluser]
Hi, My url is like this: http://localhost/websitesvn/trunk/en/tag/keyboards I want to rout it: http://localhost/websitesvn/trunk/en/tag.../keyboards I am doing this: Code: $route['tag/(:any)'] = 'tag/index/$1'; But it is giving error. Help please
[eluser]toopay[/eluser]
Your routes should be a relative to your controller, so it should be like : Code: $route['trunk/en/tag/(:any)'] = "trunk/en/tag/index/$1";
[eluser]fivefinger-bd[/eluser]
Thanks for your reply actually my base url is http://localhost/websitesvn/trunk/ project is multilingual i have got help from Santosh an Indian developer. Now i am using this: Code: $route['(de|en)/tag/(:any)'] = 'tag/index/$1'; It is working |
Welcome Guest, Not a member yet? Register Sign In |