How to remove index.php from URL in codeigniter

If you using Codeigniter MVC for development and want to remove index.php from URL in codeigniter, here is the complete solution to remove index.php.

Create a file named .htaccess in the root directory of your website server, and just copy and paste the below code in file.

That is it, integrate the code and enjoy the beautifull URL of your website.