Remove index.php from codeigniter in xamp Remove index.php from codeigniter in xamp codeigniter codeigniter

Remove index.php from codeigniter in xamp


first create .htacess file and paste below code in thatRewriteEngine on

RewriteCond $1 !^(index\.php|resources|robots\.txt)RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php/$1 [L,QSA]

then go to config file

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

change to

$config['index_page'] = '';

and enjoy


Try this:

RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php/$1 [L]$config['index_page'] = 'index.php';

change to

$config['index_page'] = '';


have you enabled the mod_rewrite in apache?