CodeIgniter Forums

Full Version: Homepage with no Controller in URL?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Sorry but basically I'm a noob.

How do you get it so on the homepage of your site it just has the domain in the url and not the 'home' controller or whatever you call it.

for example this site or tek-9. When you go to the homepage it's whereas on my site it would be or whatever I name the controller.


Omg i'm so stupid, my bad :3

El Forum

You use the routing config to hide the controler name in the url.

El Forum


$route['default_controller'] = 'home';