CodeIgniter turn off automatic routing?

codeigniter, php

Solution

Keep in mind that Dale's solution:

$route['(:any)'] = "some/default/controller/$1";

only works for one-segment URLs, like:

example.com/foo

but not for:

example.com/foo/bar

You can get around this by using a regular expression instead of the CI wildcard. And by routing to a non-existing class drops a show_404() indeed:

$route['(.*)'] = "none";

Problem

Is it possible to turn off the automatic routing in CodeIgniter and have it only process requests if a route for that request exists? Thanks.

Original source