How to Remove index.php on URL in CodeIgniter
Remove the index.php in the URL for CodeIgniter. Simple and Fast Tutorial for all PHP Developers.
Short instructions on how to remove the CodeIgniter index.php with .htaccess
1. Create .htaccess File
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]
2. Update config.php File
$config['index_page'] = "index.php"; To $config['index_page'] = ""; $config['uri_protocol'] = "AUTO"; To $config['uri_protocol'] = "REQUEST_URI";