In which files routes are defined in Codeigniter?

Last updated 1 year, 6 months ago | 284 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

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

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

?>