<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]