Code Igniter

From KOP KB
Revision as of 13:21, 20 May 2015 by ReMaster (talk | contribs) (= Forcing traffic to specific controller and method)
Jump to: navigation, search

Route Related

Forcing traffic to specific controller and method

Pretty much what were trying to do is make this url: https://www.domain.com/home/pages/about
Become This one: https://www.domain.com/about

In the routes file below put in:

$route['default_controller'] = 'home/pages';
$route['(:any)'] = 'home/pages';

Source: http://stackoverflow.com/questions/30338589/codeigniter-force-all-traffic-to-specific-controller-and-method