Remove Index.php From URL CodeIgniter

Create the .htaccess file add the code given below and put it into your root directory of the main folder

And please keep this variable $config[‘index_page’] = ‘ ‘;  empty you can find this in config.php in config folder

RewriteEngine On
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
RewriteCond $1 !^(index\.php|public|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]

Codeigniter Light Weight Framework

CodeIgniter Rocks

CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications.

Read User Guide Here

Notes

What’s inside the User Guide?

The User Guide contains an introduction, tutorial, a number of “how to” guides, and then reference documentation for the components that make up the framework.

Where else can I find the User Guide?

The user guide download is simply the zipped folder from the released version. It is included in the framework download.

Download User guide Here