1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
3 | -------------------------------------------------------------------------
5 | -------------------------------------------------------------------------
6 | This file lets you re-map URI requests to specific controller functions.
8 | Typically there is a one-to-one relationship between a URL string
9 | and its corresponding controller class/method. The segments in a
10 | URL normally follow this pattern:
12 | example.com/class/method/id/
14 | In some instances, however, you may want to remap this relationship
15 | so that a different class/function is called than the one
16 | corresponding to the URL.
18 | Please see the user guide for complete details:
20 | http://codeigniter.com/user_guide/general/routing.html
22 | -------------------------------------------------------------------------
24 | -------------------------------------------------------------------------
26 | There area two reserved routes:
28 | $route['default_controller'] = 'welcome';
30 | This route indicates which controller class should be loaded if the
31 | URI contains no data. In the above example, the "welcome" class
34 | $route['404_override'] = 'errors/page_missing';
36 | This route will tell the Router what URI segments to use if those provided
37 | in the URL cannot be matched to a valid route.
41 $route['default_controller'] = "catalog";
42 $route['404_override'] = '';
44 $route['watch/([\d]+)/?'] = "video/watch/$1";
45 $route['watch/([\d]+)/(.+)'] = "video/watch/$1/$2";
47 $route['install-plugins'] = 'article/install-plugins';
48 $route['about'] = 'article/about';
49 $route['help'] = 'article/help';
50 $route['contact'] = 'article/contact';
54 /* End of file routes.php */
55 /* Location: ./application/config/routes.php */