Skip to content

Instantly share code, notes, and snippets.

@arifulhb
Created January 19, 2015 10:35
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 arifulhb/bdcfbbbf9da8e1fbea80 to your computer and use it in GitHub Desktop.
Save arifulhb/bdcfbbbf9da8e1fbea80 to your computer and use it in GitHub Desktop.
A simple .htaccess for CodeIgniter
<IfModule mod_rewrite.c>
RewriteEngine on
Options -Indexes
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment