404 going to admin - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: 404 going to admin (/showthread.php?tid=75638) |
404 going to admin - Knutsford - 02-28-2020 config routes.php controllers core Front_Controller.php modules admin config routes.php controllers Login.php is my structure. It is Codeigniter 3. The front end works but if I go to /admin I get a 404 The first routes.php has $route['default_controller'] = "web/Pages/"; $route['404_override'] = 'web/Pages/'; $route['admin'] = "admin/Login"; the second routes.php has $route['admin'] = "Login"; It is going into Front_Controller.php and getting a 404 class Front_Controller extends MX_Controller I want it to go to admin/Login Why isn't it going to admin/Login? Do I need a redirect in Front_Controller.php? The 2.2.1 version doesn't have one so I am not sure what should be done. Thanks RE: 404 going to admin - Knutsford - 02-28-2020 It is as thought everything is going through $route['default_controller'] and $route['admin'] = "admin/Login"; is being ignored RE: 404 going to admin - Knutsford - 02-29-2020 (02-28-2020, 09:27 AM)Knutsford Wrote: It is as thought everything is going through $route['default_controller'] and $route['admin'] = "admin/Login"; is being ignoredRoutes.php under the web module is $route['web'] = "Pages"; |