Newbie Error, migrating site & anything other than default controller won't fire - 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: Newbie Error, migrating site & anything other than default controller won't fire (/showthread.php?tid=40606) Pages:
1
2
|
Newbie Error, migrating site & anything other than default controller won't fire - El Forum - 04-13-2011 [eluser]Guiseppi[/eluser] I have an existing site which I've moved to the AWS hosting platform. When I hit: www.example.com my default controller shows up (as expected) However, when I try to navigate to another controller (say: www.example.com/somecontroller) from that default page I get a 404 error. Also, based on notes I've seen on the message board I've tried: www.example.com/index.php/somecontroller brings up the default controller & not /somecontroller Any ideas what this newbie has overlooked, is there something in the Apache2 config I missed? Things I've tried: - I've already tried the general recommendations with adjusting .htaccess to no avail. - I've already set my base_url in config.php Help! Newbie Error, migrating site & anything other than default controller won't fire - El Forum - 04-13-2011 [eluser]micflan[/eluser] Are you sure that apache mod_rewrite is enabled? On a Linux machine this (in a terminal) will either enable the mod or tell you its already running. Code: a2enmod rewrite Are you seeing a CodeIgniter 404 page or a generic Apache 404 message? Newbie Error, migrating site & anything other than default controller won't fire - El Forum - 04-13-2011 [eluser]Guiseppi[/eluser] Yes your command results in: "rewrite" already present I'm seeing the apache2 404 page (not the CI 404 page) Newbie Error, migrating site & anything other than default controller won't fire - El Forum - 04-13-2011 [eluser]wh1tel1te[/eluser] Could you please post your .htaccess contents? Newbie Error, migrating site & anything other than default controller won't fire - El Forum - 04-13-2011 [eluser]Guiseppi[/eluser] This .htaccess is sitting in the root folder of my site: Code: <IfModule mod_rewrite.c> Newbie Error, migrating site & anything other than default controller won't fire - El Forum - 04-13-2011 [eluser]wh1tel1te[/eluser] Your line here: Code: RewriteRule ^(.*)$ index.php?/$1 [L] You could try changing to this (which works for me): Code: RewriteRule ^(.*)$ index.php [L] Newbie Error, migrating site & anything other than default controller won't fire - El Forum - 04-13-2011 [eluser]Guiseppi[/eluser] I made the adjustment you suggested, restarted apache & still no go... Newbie Error, migrating site & anything other than default controller won't fire - El Forum - 04-13-2011 [eluser]wh1tel1te[/eluser] Apache doesn't need to be restarted for .htaccess changes. Found another line in my code after RewriteEngine On: Code: Options +FollowSymLinks Other than that I don't know sorry. Maybe someone else can help. Newbie Error, migrating site & anything other than default controller won't fire - El Forum - 04-13-2011 [eluser]Guiseppi[/eluser] Made that adjustment as well, didn't fix it. Thx for responding though! Newbie Error, migrating site & anything other than default controller won't fire - El Forum - 04-14-2011 [eluser]toopay[/eluser] More information...such as : 1. CI version which you use. 2. Your configuration, 'config.php' under 'application/config' |