CodeIgniter Forums
Url rooting problem - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Url rooting problem (/showthread.php?tid=14760)

Url rooting problem - El Forum - 01-14-2009

[eluser]Dimitar Velkov[/eluser]
I have problem with the rooting on mu multilingual site/blog. For the language I'm rooting with this
$route['(..)$'] = "front";
$route['(..)/(.+)$'] = '$2';

this go's to language/controller

and now I want to root some thing like this
1. $route['(..|...)/(:any)'] = "front/cat/$2";
2. $route['(..|...)/(:any)/(:any)/(:any)'] = "front/post/$4";

1. is for to go's to and the
2. is for to go's to

the problem is that I always get root to the cat function in my controller named front.

Help please.