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

[eluser]BenSeagrave[/eluser]
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 codeigniter.com/ whereas on my site it would be example.com/site or whatever I name the controller.

//EDIT

Omg i'm so stupid, my bad :3

El Forum

[eluser]isawhat[/eluser]
You use the routing config to hide the controler name in the url.

El Forum

[eluser]mejlo[/eluser]
application/config/routes.php

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