Thursday, June 17, 2010

How to remove index.php from url in CodeIgniter

How to remove index.php from url in CodeIgniter


just create a .htaccess file in the root and write these listed below entries:
---------------------------------------------------------------------
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
---------------------------------------------------------------------

No comments:

Post a Comment