Skip to content

Instantly share code, notes, and snippets.

@reactormade
Created August 16, 2012 03:55
Show Gist options
  • Save reactormade/3366555 to your computer and use it in GitHub Desktop.
Save reactormade/3366555 to your computer and use it in GitHub Desktop.
CodeIgniter .htaccess
RewriteEngine on
RewriteRule ^$ /index.php [L]
RewriteCond $1 !^(index\.php|public|user_guide|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /index.php/$1 [L]
@reactormade
Copy link
Author

RewriteEngine on
RewriteRule ^$ /index.php? [L]
RewriteCond $1 !^(index.php|public|user_guide|robots.txt|favicon.ico)
RewriteRule ^(.*)$ /index.php?/$1 [L]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment