CodeIgniter Forums
Homepage with no Controller in URL? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Homepage with no Controller in URL? (/thread-43626.html)



Homepage with no Controller in URL? - El Forum - 07-18-2011

[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


Homepage with no Controller in URL? - El Forum - 07-18-2011

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


Homepage with no Controller in URL? - El Forum - 07-20-2011

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

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