Files
ystavakylaecard/.htaccess
Ismo Vuorinen c10c9e3131 Initial commit, Ecard system build with CodeIgniter PHP framework
Currently working
- Basic structure
- Basic caching and gzip compression for speed
- Admin authentication
2013-07-11 07:42:03 +03:00

20 lines
724 B
ApacheConf

<IfModule mod_expires.c>
ExpiresActive On
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresDefault "access plus 1 year"
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType text/plain A2592000
ExpiresByType text/css A2592000
</FilesMatch>
</IfModule>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-javascript text/css
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]