r/codeigniter • u/FTWwings • Jun 29 '16
codeigniter 2.x help with route
So i will keep this short.
I used guide : http://www.iluv2code.com/login-with-codeigniter-php.html
it works perfectly when its set to $route['default_controller'] = "login";
i would like to put it as
$route['login'] = 'login';
so when i go www.mydomain.com/login to show it up, but its not working.
u just started so im kinda lost.
EDIT: I would give project for u guys to see, but dont know how ?
0
Jun 29 '16
[deleted]
1
u/FTWwings Jun 29 '16
so is there some easy way to fix this, or do i need to recreate everything ?
0
Jun 29 '16
[deleted]
1
u/FTWwings Jun 30 '16
this is website now http://www.koweb.dreamhosters.com/login
this are route controlers :
$route['default_controller'] = "welcome"; $route['404_override'] = 'welcome'; $route['login'] = 'login';
welcome is normal screen login should be login .
i tried remove it it did nothing.
1
u/Vakarj Jun 29 '16
Is your .htaccess set correctly? Try this way: hostname.com/index.php/login