Steps to remove index.php from URL
1. Change the index_page configuration like
$config[‘index_page’] = ‘’;
2. Create .htaccess file and add the following code
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
After the configuration
Leave a Comment