Welcome Guest, Not a member yet? Register   Sign In
help with routing
#1

[eluser]huzzi[/eluser]
Hi guys!

I want to route http://www.domain.com/username -> http://www.domain.com/profile/view which i can do with the routing below.
$route[':any'] = "profile/view";

Now how do route
domain.com/account -> domain.com/account/index
or
domain.com/account/update -> domain.com/account/update

Please help.

Thanks in advance.
#2

[eluser]huzzi[/eluser]
is this not possible?
#3

[eluser]WanWizard[/eluser]
Since you have defined a 'catch-all' route, you need to add routes for any controller that you don't want to catch:
Code:
$route[’account(.*)’] = “account$1”;
$route[’:any’] = “profile/view”;




Theme © iAndrew 2016 - Forum software by © MyBB