[eluser]Unknown[/eluser]
This is one of the most repeated questions, but I did not get it and had to ask. I use CI 2. I removed index.php from URL by following steps:
In config.php I set
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
In routes.php I set
$route['default_controller'] = "home";
here is my .htaccess
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]