To remove index.php from URL in codeigniter, we create ".htaccess" and place it in root directory of codeigniter.
RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]
Sample file structure given below.
Note:In mycase CodeIgniterFolder is main folder.
To build our application we will use Model Controller View (MVC) pattern.
CodeIgniter's Hooks feature allow us to change the inner working of the framework without changing the core files.
CodeIgniter is PHP Open Source php MVC framework that can help us to speed up the development of our web applications.