Welcome Guest, Not a member yet? Register   Sign In
[NEED URGENT HELP] All controllers showing 404 except default controller
#10

(05-16-2015, 05:25 AM)InsiteFX Wrote: As Hobbes mentioned all Any routes need to be the last ones in your routes file because they are a catch all route.

So if you have these routes

PHP Code:
$route['(:any)'] = 'home/$1'   // http://example.com/any

$route['student'] = 'student' // http://example.com/student 


Your student route will never run because the any catch all route will always run.

No result, here it is-

$route['act/load/(:any)'] = 'act/load/$1';

$route['student'] = 'student';
$route['student/(:num)'] = 'student/profile/$1';

$route['admin'] = 'admin';
$route['admin/(:any)'] = 'admin/$1';

$route['(:any)'] = 'home/$1'
"Who thinks in code"
Perfectly describes who I am
mbparvez.me
Reply


Messages In This Thread
RE: [NEED URGENT HELP] All controllers showing 404 except default controller - by webdevron - 05-16-2015, 05:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB