CodeIgniter Forums
$route['404_override'] - why don't random URLs generate 404's ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: $route['404_override'] - why don't random URLs generate 404's ? (/thread-40699.html)



$route['404_override'] - why don't random URLs generate 404's ? - El Forum - 04-15-2011

[eluser]stormbytes[/eluser]
I'm using the 'new' routing feature - $route['404_override'].

If I understand correctly, this should re-route any request that's returned 404 to the state URL.

But when I enter some address...

http://site-root/some/made/up/url

I get an error page like this:

Code:
An Error Was Encountered

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



$route['404_override'] - why don't random URLs generate 404's ? - El Forum - 04-16-2011

[eluser]toopay[/eluser]
What CI version you are using?