In which files routes are defined in Codeigniter?

Last updated 4 years, 9 months ago | 1335 views 75     5

Tags:- CodeIgniter

Codeigniter | routes 

Routing rules are defined in your application/config/routes.php file. 


In it, you'll see an array called $route that permits you to specify your own routing criteria. Routes can either be specified using wildcards or Regular Expressions.

The default code present in the application/config/routes.php file

defined('BASEPATH') OR exit('No direct script access allowed');

$route['default_controller'] = 'welcome';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;