help with routing - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: help with routing (/showthread.php?tid=34044) |
help with routing - El Forum - 09-16-2010 [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. help with routing - El Forum - 09-17-2010 [eluser]huzzi[/eluser] is this not possible? help with routing - El Forum - 09-17-2010 [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”; |