Skip to content

Instantly share code, notes, and snippets.

@jordanmaslyn
Created June 3, 2012 04:25
Show Gist options
  • Save jordanmaslyn/2861878 to your computer and use it in GitHub Desktop.
Save jordanmaslyn/2861878 to your computer and use it in GitHub Desktop.
CodeIgniter: .htaccess file (from CodeIgniter.tv)
<IfModule mod_rewrite.c>
# allow_override On
# mod_rewrite is installed
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
<IfModule mod_php5.c>
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_php5.c>
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment