[eluser]webdevguy32[/eluser]
I have main controller. In main, a method (login) calls administer controller. The URL says, mysite/main/login = works fine. Once it logs in, it is redirected to mysite/administer/member. There is a controller in the controller directory called administer and it does have a method called member. The error for that address is:
Quote:404 Page Not Found
The page you requested was not found.
I can echo out some test code in the main controller just before that redirect so I know the code is getting there. The code is:
Code:
echo "*****************";exit;
// validation passes so redirect user to logged in page
redirect('administer/member');
It echos out the "********". When I remove the line, including exit, so it's only the redirect code,
Code:
redirect('administer/member');
it errors 404.
My base url and index file in config are blank.
My router are:
Code:
$route['default_controller'] = "main";
$route['404_override'] = '';
Here's my .htaccess:
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(image|css)($|/) - [L]
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteCond %{REQUEST_URI} !-l
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
I tried sub-folders, per the instructions on the site and could not get them to work either.
Any ideas why it is not able to display anything from the administer controller and how to fix it?
Thanks.