Welcome Guest, Not a member yet? Register   Sign In
404 going to admin
#1

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
Reply
#2

It is as thought everything is going through $route['default_controller'] and $route['admin'] = "admin/Login"; is being ignored
Reply
#3

(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 ignored
Routes.php under the web module is


$route['web'] = "Pages";
Reply




Theme © iAndrew 2016 - Forum software by © MyBB