Difference between revisions of "Code Igniter"
From KOP KB
(→= Forcing traffic to specific controller and method) |
(→= Forcing traffic to specific controller and method) |
||
Line 1: | Line 1: | ||
== Route Related == | == Route Related == | ||
− | === Forcing traffic to specific controller and method == | + | === 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> | Pretty much what were trying to do is make this url: https://www.domain.com/home/pages/about<br> |
Revision as of 13:21, 20 May 2015
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';