Routes and '?' - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Routes and '?' (/showthread.php?tid=45802) |
Routes and '?' - El Forum - 10-06-2011 [eluser]umbungo[/eluser] I would like /page/?(:any to go to controller1, but /page/(:any (and /page) to go to controller2 I tried the following unsucessfully; Code: $route['page/(\?)'] = '/controller1/controller1'; |