Categories Uncategorised

Remove index.php from URL in CodeIgniter

Step 1 : Make .htaccess file in root location i.e along with application folder
Step 2 : Write this code into .htaccess file.

  • RewriteEngine On
  • RewriteCond %{REQUEST_FILENAME} !-f
  • RewriteCond %{REQUEST_FILENAME} !-d
  • RewriteRule ^(.*)$ index.php/$1 [L]

Leave a Reply

Your email address will not be published. Required fields are marked *