• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
default_controller not working as I expected

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?


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 )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.