CodeIgniter - How to hide index.php from the URL CodeIgniter - How to hide index.php from the URL codeigniter codeigniter

CodeIgniter - How to hide index.php from the URL


use this:

RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ /folder/index.php/$1 [L]


Just toss the following code into your .htaccess file

RewriteEngine onRewriteCond $1 !^(index\.php|images|robots\.txt)RewriteRule ^(.*)$ /index.php/$1 [L]

Source: http://codeigniter.com/user_guide/general/urls.html


here is the solution simply drop in root.

RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule .* index.php/$0 [PT,L]