Here are a few create routing :
$route['code'] = 'example';
A URL containing the word “code” in the first segment will be remapped to the “example” class.
$route['example/iwaydi'] = 'example/users/22';
A URL containing the segments example/iwaydi will be remapped to the “example” class and the “users” method. The ID will be set to “22”.
$route['product/(:any)'] = 'blogs/content';
A URL with “product” as the first segment, and anything in the second will be remapped to the “blogs” class and the “content” method.
$route['product/(:num)'] = 'blogs/content_id/$1';
A URL with “product” as the first segment, and a number in the second will be remapped to the “blogs” class and the “content_id” method passing in the match as a variable to the method.
Important
Do not use leading/trailing slashes.
Open application/config/routes.php with sublime
You can edit welcome with your controller who want first show in website. I want first show is mypage
You can looking result my page here
If you want to display your own controller page of error. you can type your controller in the second code
You can looking result notfound here
** This is the first tutorial i'm contributing using Codeigniter.**