$config['base_url'] = 'http://localhost/ci/index.php'; // should be: $config['base_url'] = 'http://localhost/ci/';