Default controller doesn't appear to be working |
[eluser]feejin[/eluser]
My local development site in MAMP works fine, put it on my live hosting in a subfolder for testing and I get 404 errors when I don't pass a controller. E.g. http://www.website.com/dev/ <-- 404 http://www.website.com/dev/Blog <-- Works correctly I'm using this .htaccess to remove index.php from the URI: Code: RewriteEngine On Hosting definitely supports mod_rewrite, I have other stuff on there using it - including a Wordpress install that uses a very similar rewrite. I've printed out the $_SERVER variable and it shows that it's going for the right script (http://www.website.com/dev/index.php) In config I've set everything up like (I think) it should be, relevant parts are: Code: $config['base_url'] = "http://www.website.com/dev/"; And in routes I have Code: $route['default_controller'] = "Blog"; Any idea what might be wrong? Hoping it's something simple, this is driving me crazy! Thanks, Colin |
Messages In This Thread |
Default controller doesn't appear to be working - by El Forum - 10-13-2009, 02:44 AM
Default controller doesn't appear to be working - by El Forum - 10-13-2009, 03:32 AM
Default controller doesn't appear to be working - by El Forum - 10-13-2009, 03:37 AM
Default controller doesn't appear to be working - by El Forum - 10-13-2009, 05:05 AM
|