CodeIgniter Forums
Rackspace default controller? - 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: Rackspace default controller? (/showthread.php?tid=41055)



Rackspace default controller? - El Forum - 04-26-2011

[eluser]jentree[/eluser]
I have created my site locally, everything is looking/functioning great.

I have uploaded my site to my host (rackspace) and all I am able to get is a 404 page.

Config file:
Code:
$config['index_page'] = '';

My routes file:
Code:
//$route['default_controller'] = "welcome";
$route['default_controller'] = "SiteController";

My .htaccess (in the site root)
Code:
RewriteEngine On

RewriteCond $1 !^(index\.php|images|captcha|public|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /index.php/$1 [L]


If I place my own contoller code inside of the "welcome" controller, the page loads, but none of the css, images etc are available. I get a "page not found" if I try to access.

I'm not sure where to start trouble shooting...


Rackspace default controller? - El Forum - 04-26-2011

[eluser]jentree[/eluser]
** SOLVED **
Make sure everything is lower-case. "site_controller.php" not "SiteController.php"

Is that noted anywhere in the docs that I (obviously) overlooked?