Skip to content

Instantly share code, notes, and snippets.

@bilalq
Created November 10, 2012 23:52
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 bilalq/4053028 to your computer and use it in GitHub Desktop.
Save bilalq/4053028 to your computer and use it in GitHub Desktop.
htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|public|stylesheets|images|javascripts|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment