• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Homepage with no Controller in URL?

#1
[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

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

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.