Skip to content

Instantly share code, notes, and snippets.

@ryanlindsey
Created November 1, 2011 23:05
Show Gist options
  • Save ryanlindsey/1332231 to your computer and use it in GitHub Desktop.
Save ryanlindsey/1332231 to your computer and use it in GitHub Desktop.
CodeIgniter .htaccess
# Remove index.php from CodeIgniter application
RewriteEngine on
RewriteCond $1 !^(index\.php|css|js|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment