default page loading on every URI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: default page loading on every URI (/showthread.php?tid=38596) |
default page loading on every URI - El Forum - 02-12-2011 [eluser]Unknown[/eluser] Hi all, this is my first post. I moving to CI 2.0.0, followed the instructions by Phil Sturgeon (http://philsturgeon.co.uk/news/2010/05/upgrading-to-codeigniter-2.0), and I don't have any errors. However every page I go to is loading my default page. I got to mysite.com and I get my default page (which is fine). But if I go to mysite.com/blog/ or mysite.com/schedule/ I still get the default page. Even if the page does not exist (mysite.com/blahblahblah/), I get the default page. I did not change anything in my application folder (other than changing Controller and Model to CI_Controller and CI_Model). My routes file and .htaccess files have not changed either. The only thing that changed were: - uploaded new system folder - added encryption key to allow sessions - change model and controller names - added profiler.php and foreign_chars.php to application/config folder Any ideas? TIA default page loading on every URI - El Forum - 02-12-2011 [eluser]Rok Biderman[/eluser] Well, there are some further changes to be made for the mod_rewrite to work properly. That could explain it. Try this and let me know if it helps. http://ellislab.com/forums/viewthread/180566/ default page loading on every URI - El Forum - 02-12-2011 [eluser]Unknown[/eluser] Thank you! It turns out that I had to change Code: $config['uri_protocol'] = "AUTO"; to: Code: $config['uri_protocol'] = "REQUEST_URI"; It works now! default page loading on every URI - El Forum - 02-21-2011 [eluser]Unknown[/eluser] [quote author="asrar.ca" date="1297568655"]Thank you! It turns out that I had to change Code: $config['uri_protocol'] = "AUTO"; to: Code: $config['uri_protocol'] = "REQUEST_URI"; It works now! [/quote] And work for me ! Thanks ! |