CodeIgniter Forums

Full Version: (newb) ask about routing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


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)?!