CodeIgniter Forums
Routing issue with 404_override - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Routing issue with 404_override (/showthread.php?tid=48458)



Routing issue with 404_override - El Forum - 01-17-2012

[eluser]sehummel[/eluser]
I'm having an issue with 404_override in CI 2.02. Here is my default controller and override:

Code:
$route['default_controller'] = "home/index_controller";    
$route['404_override'] = "misc/site_map";

This line uncommented gives me this error:

Quote: Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.

But commented, I get a 404 error. So something in the override is causing the problem. I just don't know what. I've tried various MY_Router files and they don't help. Anyone have any suggestions about how I can fix this?

I've eliminated my .htaccess file as the problem by deleting it from the server and then trying to access a controller that doesn't exist like this: http://domain.com/index.php/doesnotexist. I still get the error.