在codeigniter中没有默认控制器的重定向

It works fine on the localhost. But when i upload my files on a webhost it doesn't redirect to a default controller. However by entering the url manually it loads the pages. what must we consider for loading the default controller?

here's my .htaccess

<IfModule mod_rewrite.c>

RewriteEngine On

# Set the rewritebase to your CI installation folder
RewriteBase /


# Send everything to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

</IfModule> 

I've set the baseurl in config.php

$config['base_url'] = 'http://'.$_SERVER['SERVER_NAME'];
$config['index_page'] = 'index';

here's my routes.php

$route['default_controller'] = "Home"; // Home is my default controller
$route['404_override'] = '';

Replace your following code in config.php

From:

$config['index_page'] = 'index';

To:

$config['index_page'] = '';