Question: how to remove index php from url using htaccess in codeigniter?
Answer: Create a .htaccess file. Firstly we will need to create a . htaccess file in our project's root directory or CodeIgniter directory. ... 
Removing index.php file. Open the config. ... 
Enable apache mode rewrite. Now, we will need to activate the mod_rewrite with the help of the following command. ... 
Restart Apache.