CodeIgniter Forums

Full Version: problem with redirecting pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Marlon Renan[/eluser]
Hello everyone,
I'm with a problem here, wish you can help me!?

when users type www.mysite.com the fallowing error occurs
404 Page Not Found

what can I do to redirect users to www.mysite.com/home when it types www.mysite.com?

thanks for help!

El Forum

[eluser]umefarooq[/eluser]
hi if home is your controller then you can set your default controller in your route.php

Code:
$route['default_controller'] = "home";

El Forum

[eluser]Marlon Renan[/eluser]
thanks for help
it works perfectly