Skip to content

Instantly share code, notes, and snippets.

@aniket-magadum
Created May 11, 2019 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniket-magadum/6e801d8270b555c68c24d463b17e81b2 to your computer and use it in GitHub Desktop.
Save aniket-magadum/6e801d8270b555c68c24d463b17e81b2 to your computer and use it in GitHub Desktop.
.htaccess file for removing index.php from codeigniter . It uses the mod_rewrite PHP extension.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment