Can't load a controller except the "default" one - 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: Can't load a controller except the "default" one (/showthread.php?tid=42191) |
Can't load a controller except the "default" one - El Forum - 05-29-2011 [eluser]mrmuggles[/eluser] I developed a website with CI on my computer (Windows/Apache) and it's working fine. (PHP/5.3.1 and CI 1.7.2) I migrated to a php 5.3.6 Linux/Apache server. Now, any URL that I call will display the default controller. Even a URL that should'nt exists will call the default controller set in routes.php. Here's the content of "config/routes.php" ------------------------ $route['default_controller'] = "home"; $route['scaffolding_trigger'] = ""; ------------------------ my .htaccess: ------------------------ RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt|js|css|phpMyAdmin|captcha|img_crop|user_guide) RewriteRule ^(.*) index.php?/$1 [L] ------------------------ Any idea? Can't load a controller except the "default" one - El Forum - 05-29-2011 [eluser]mrmuggles[/eluser] Here was the problem : I had $config['uri_protocol'] = "PATH_INFO"; in the config.php file. I changed it to $config['uri_protocol'] = "AUTO"; and everything worked! |