CodeIgniter Forums
(newb) ask about routing - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: (newb) ask about routing (/thread-45641.html)

(newb) ask about routing - El Forum - 09-29-2011


im new to ci,
please explain me all about routing url,please explain it detail with an example...

and i want to ask
i use this

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

but in browser i should always type this to call my page

http://localhost/code/index.php/home to hide 'index.php'?! (i just want http://localhost/code/home) if i want to type anything behind (ex,"http://localhost/code/anything") it always redirect to my page (like url in no.1)?!