help with routing |
[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.
[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”; |
Welcome Guest, Not a member yet? Register Sign In |