[eluser]jdfwarrior[/eluser]
There are, to my knowledge, two options. I am not completely clear as to what you want to do when someone calls the 'search/anything'. Does 'it gets routed mean, it calls another function and it searches for that term? Or does it redirect to a 404?
Anyway.
Option #1: Create all routes. You can do something like..
$route['search/web/$1'] = 'search/web/$1';
..
..
.. other functions
$route['search/(:any)'] = 'search/index';
And that will take anything that is not a route to a function, redirect to the index function instead, or whatever function you want.
Option #2: Use _remap. You can create a _remap function within the controller itself and then make it direct to the functions that are available, and anything else passed in, does whatever you want, a redirect, maps to another function, etc.