This question already has an answer here:
OK, what I need should fairly simply (and I've already noticed several other related questions, none of which works for me though).
I'm building a CodeIgniter-based website and I need to be able to access all controller using :
www.mysite.com/some-controller/some-method
instead of
www.mysite.com/index.php/some-controller/some-method
What should my .htaccess contain?
</div>
Please put this to your .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
</IfModule>
Try this one Remove
$config['index_page'] ='index.php';
and replace with
$config['index_page'] ='';