Created
August 29, 2013 12:24
-
-
Save fengelz/6377400 to your computer and use it in GitHub Desktop.
Codeigniter htaccess file that remoces index.php and allows resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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