CodeIgniter Forums
problem with redirecting pages - 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: problem with redirecting pages (/thread-25500.html)



problem with redirecting pages - El Forum - 12-14-2009

[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!


problem with redirecting pages - El Forum - 12-14-2009

[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";



problem with redirecting pages - El Forum - 12-14-2009

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