404 error, problem with the URI rooting - 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: 404 error, problem with the URI rooting (/showthread.php?tid=34424) |
404 error, problem with the URI rooting - El Forum - 09-29-2010 [eluser]Unknown[/eluser] Hi all, i have a problem with the URI rooting ! I can not identify the controller that I want and so I always have a 404 error that appears. I do not know how! My controller is in my file and C_ville.php routes.php I: $ Route ['city'] = 'C_ville'; But it does not seem to point to the right place. Do you have an idea? thank you in advance! 404 error, problem with the URI rooting - El Forum - 10-01-2010 [eluser]jmadsen[/eluser] have you looked at http://ellislab.com/codeigniter/user-guide/general/routing.html? so, with what you have, if your url is: www.mysite.com/city your dir structure will be: controllers/C_ville and it will call the index function of C_ville controller. But...I think that is not what you want. Can you give us more details? 404 error, problem with the URI rooting - El Forum - 10-01-2010 [eluser]danmontgomery[/eluser] Code: $route Code: $Route Code: $ Route |