Skip to content

Instantly share code, notes, and snippets.

@fengelz
Created August 29, 2013 12:24
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 fengelz/6377400 to your computer and use it in GitHub Desktop.
Save fengelz/6377400 to your computer and use it in GitHub Desktop.
Codeigniter htaccess file that remoces index.php and allows resources
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
AddDefaultCharset utf-8
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment