How to remove index.php from Codeigniter URL
If you are using Codeigniter you are noticed that by default index.php will be included with your URL.
But you can easily remove index.php from your CodeIgniter’s URL so that your URL should be like:http://anmsaiful.net/blog/contact
To do this just follows the following steps:
- Open config.php from system/application/config directory and replace
$config['index_page'] = “index.php” by $config['index_page'] = “” - Create a “.htaccess” file in the root of CodeIgniter directory (where the system directory resides), open the file using your favorite text editor, write down the following script and save it:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] - In some case the default setting for uri_protocol does not work properly. To solve this problem just replace
$config['uri_protocol'] = “AUTO” by $config['uri_protocol'] = “REQUEST_URI” from system/application/config/config.php

I am A.N.M. Saiful Islam. Open Source Contributor, Professional Web Application Developer and currently working with SYSBD Limited as Project Manager
i tried this but nothing has been worked ?
Thanks!
hi. your solution not working for me also
Hi, of course this post is actually nice and I have learned lot of
things from it concerning blogging. thanks.