How to Remove Index.PHP in Codeigniter using htaccess - Codeigniter tutorial for beginners step by step in hindi

In This tutorial we will discuss about . How to remove index.php in codeigniter using htaccess .

How to remove index.php

1. Create new .htaccess file on your codeigniter project root folder
2. write this code on your .htaccess file 

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

3.Open config.php file

Change :

$config['index_page'] = "index.php";

To

$config['index_page'] = '';

After use this step . index.php removed on your project url


Related Tutorials