Routing with slug |
[eluser]Ngulo[/eluser]
hey guys, do you know how to route from : www.mysite.com/asd/index/slug to www.mysite.com/asd/slug ? i tryed Code: $route['asd/index/(:any)'] = "asd/$1"; but i doesn't works.. thanks who would help me
[eluser]Eric Barnes[/eluser]
I believe that is because your route has the same folder for from and to. So it would be better in this case to not route it and instead use the _remap method in the controller.
|
Welcome Guest, Not a member yet? Register Sign In |