Welcome Guest, Not a member yet? Register   Sign In
404 on routes in sub folder
#1

I inherited a codeigniter website, and upgraded codeigniter. Figured out the controller files have to start with capital letters, and I got most of the routes and views working again. Except for the Admin portion of the site. The routes for this portion is not in the routes.php file, but in a different file. And the controllers is in a sub directory called admin, which I renamed to Admin. So even though there is for example an entry:

PHP Code:
$route['admin'] = 'admin/admin/index' 

When I go to /admin I get 404, and logs show:
Code:
404 Page Not Found: Admin/admin

I've even tried putting eg
PHP Code:
$route['admin/login'] = "admin/admin/login"
in the routes.php file, but I still see in the logs
Code:
404 Page Not Found: Admin/admin
even though:

Code:
$ grep admin config/routes.php
route['admin/login'] = "admin/admin/login";
$ grep login controllers/Admin/Admin.php
    public function login()
How can I troubleshoot these 404 errors in order to properly load the routes in the sub folder?
Reply


Messages In This Thread
404 on routes in sub folder - by Vuader - 10-20-2020, 11:01 PM
RE: 404 on routes in sub folder - by InsiteFX - 10-21-2020, 10:54 AM
RE: 404 on routes in sub folder - by Vuader - 12-02-2020, 01:21 AM
RE: 404 on routes in sub folder - by InsiteFX - 12-03-2020, 04:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB