How to remove index.php from CodeIgniter URL

Remove index.php from CodeIgniter URL

Hi Guys! In this post we are going to show you how to remove index.php from CodeIgniter URL. By default index.php is included in CodeIgniter project. We can remove it by doing some htaccess code. So, let’s start.

remove-index-php-from-url

Make a .htaccess file in root folder of  CodeIgniter(If .htaccess is already there you can edit it). Copy and paste the below code in the .htaccess file and save it.

Now you can avoid writing index.php in the URL. It will work like the charm. If you are not able to remove the index.php you can reply below or contact us.

Enjoy Coding!!

Share This:

Leave a Reply