Welcome Guest, Not a member yet? Register   Sign In
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';




Theme © iAndrew 2016 - Forum software by © MyBB