Welcome Guest, Not a member yet? Register   Sign In
uri routing problem
#1

[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
#2

[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";
And please, next time you posted some issues which more related with code or development, put that elsewhere. Because this section is for bug issues, okay? ;-)
#3

[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




Theme © iAndrew 2016 - Forum software by © MyBB