Problem displaying index.php and default controller! |
[eluser]Unknown[/eluser]
Hi there, I'm having a problem in that when I go view the codeigniter folder of my site, instead of running the default controller, I get a 404 error. For example, if I go to www.mysite.com/ci/ It just spits out a 404. Same if I go to www.mysite.com/ci/index.php However, if I go to something like www.mysite.com/ci/A_Controller The controller runs as it should. I'll post the relevant text from routes.php and config.php Routes.php Code: $route['default_controller'] = 'Home'; Config.php Code: $config['base_url'] = 'http://jrdnhannah.co.uk/ci/'; I have a .htaccess file in the /ci/ folder, but editing it or just deleting it doesn't seem to have much of an effect, other than deleting it means I have to run a controller with index.php in front of it, ie index.php/My_Controller. I'll post what I have in it, taken from http://codeigniter.com/wiki/mod_rewrite/ Code: <IfModule mod_rewrite.c> If I need to post any more information, I'll be glad to. Thanks for your time ![]() |
Welcome Guest, Not a member yet? Register Sign In |