CodeIgniter Forums
Codeigniter routing does not working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Codeigniter routing does not working (/thread-47666.html)



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 .