Code Igniter

From KOP KB
Revision as of 13:15, 20 May 2015 by ReMaster (talk | contribs) (Created page with "== 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<br>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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/home/pages/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