Newbie Error, migrating site & anything other than default controller won't fire |
[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!
[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?
[eluser]Guiseppi[/eluser]
Yes your command results in: "rewrite" already present I'm seeing the apache2 404 page (not the CI 404 page)
[eluser]Guiseppi[/eluser]
This .htaccess is sitting in the root folder of my site: Code: <IfModule mod_rewrite.c>
[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]
[eluser]Guiseppi[/eluser]
I made the adjustment you suggested, restarted apache & still no go... ![]()
[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.
[eluser]Guiseppi[/eluser]
Made that adjustment as well, didn't fix it. Thx for responding though!
[eluser]toopay[/eluser]
More information...such as : 1. CI version which you use. 2. Your configuration, 'config.php' under 'application/config' |
Welcome Guest, Not a member yet? Register Sign In |