Difference between revisions of "Code Igniter"
From KOP KB
(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>...") |
(→= Forcing traffic to specific controller and method) |
||
Line 3: | Line 3: | ||
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> | ||
− | Become This one: https://www.domain.com | + | Become This one: https://www.domain.com/about<br><br> |
In the routes file below put in: | In the routes file below put in: |
Revision as of 13:17, 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';