Created
January 22, 2015 07:21
-
-
Save arifulhb/278c0d3d031833267153 to your computer and use it in GitHub Desktop.
CodeIgniter .htaccess for folder
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
Options -Indexes | |
RewriteBase /foldername/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ /foldername/index.php/$1 [L] | |
AddOutputFilter DEFLATE css js | |
ExpiresActive On | |
ExpiresByType application/x-javascript A2592000 | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment