![]() |
Codeigniter routing does not working - 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: Codeigniter routing does not working (/showthread.php?tid=47666) |
Codeigniter routing does not working - El Forum - 12-17-2011 [eluser]Unknown[/eluser] Hello . I have trouble when using routing. I tried this code in config/route.php: $route['news/create'] = 'news/create'; $route['news/(:any)'] = 'news/view/$1'; $route['news'] = 'news'; $route['(:any)'] = 'pages/view/$1'; $route['default_controller'] = 'pages/view'; when i try to access http://localhost/codeigniter it’s not work, just 404 Page Not Found. only default code is working..so please give a solution i m a new beginner of code igniter . |