How to add a wildcard character after the root directory in Codeigniter route.php?

advertisements

How can i directly add wildcard after the root directory like

$route['/:any'] ='controller/method';

is at possible in Codeigniter?


Use

$route['(:any)'] = 'controller/method';

See Codeigniter manual