Welcome Guest, Not a member yet? Register   Sign In
default_controller not working as I expected
#1

Hi, I'm having some trouble understanding a problem with my routes.php config. The current working route
PHP Code:
$route['default_controller'] = 'welcome'
works fine, but when I change it to
PHP Code:
$route['default_controller'] = 'admin/user/login'
I get a 404. if I go to my virtual hosts http://cms.dev/admin/user/login though, the page is displayed as expected. What's happening?

Thanks.
Reply
#2

(This post was last modified: 03-12-2016, 11:27 AM by InsiteFX.)

The default controller will not work with sub-directories. Unless you create your MY_Router and modify it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB