![]() |
codeigniter 2.0 default controller not working in server but working in localhost - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: codeigniter 2.0 default controller not working in server but working in localhost (/showthread.php?tid=47913) |
codeigniter 2.0 default controller not working in server but working in localhost - El Forum - 12-28-2011 [eluser]jayapalchandran[/eluser] I have set up a virtual host in my local machine assume it as http://local.he I have a home.php in the main controllers folder i have two sub folder inside controllers folder and they are admin and wori each of which is having a home.php as per CI 2.0 if i access http://local.he/module/wori then it should load home.php from wori and it is working but when i did the same in the server after uploading the files it loads from module always. even if i access some thing like this http://site.com/module/wori/users it is still loading the home.php from module. here is the .htaccess Code: RewriteEngine on here is the routing Code: $route['default_controller'] = "home"; These two are the only executable lines in routes.php and when i tried to access http://site.com/module/index.php/wori or http://site.com/module/index.php/wori/users then it works i checked htaccess and it is working for other modules in my site. what is missing? |