CodeIgniter Routes example

$route[‘default_controller’] = ‘welcome’;
$route[‘contacts’] = ‘contacts’;
$route[‘create’] = ‘contacts/create’;
$route[‘edit/:id’] = ‘contacts/edit’;
$route[‘update/:id’] = ‘contacts/update’;
$route[‘delete/:id’] = ‘contacts/delete’;
$route[‘404_override’] = ”;
$route[‘translate_uri_dashes’] = FALSE;

CodeIgniter Routes: Learn with Example https://www.guru99.com/codeigniter-url-routing.html