RewriteEngine On # Redirect old install path to core. RewriteRule ^install/ core/install/ [NC,L] # Main Redirect RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?routestring=$1 [L,QSA] # Because admincp is an actual directory. RewriteRule ^(admincp/)$ index.php?routestring=$1 [L,QSA] AddOutputFilterByType DEFLATE application/atom+xml \ text/javascript \ application/javascript \ application/json \ application/rss+xml \ application/vnd.ms-fontobject \ application/x-font-ttf \ application/xhtml+xml \ application/xml \ font/opentype \ image/svg+xml \ image/x-icon \ text/css \ text/html \ text/plain \ text/x-component \ text/xml ExpiresActive On ExpiresByType application/x-javascript A1209600 ExpiresByType text/javascript A1209600 ExpiresByType application/javascript A1209600 ExpiresByType text/css A31536000 ExpiresByType image/x-icon A2592000 ExpiresByType image/icon A2592000 ExpiresByType application/x-ico A2592000 ExpiresByType application/ico A2592000 ExpiresByType image/gif A2592000 ExpiresByType image/jpeg A1209600 ExpiresByType image/jpg A1209600 ExpiresByType image/png A1209600 ExpiresByType application/x-shockwave-flash A1209600 ExpiresByType font/ttf A2592000 ExpiresByType font/otf A2592000 ExpiresByType font/x-woff A2592000 ExpiresByType image/svg+xml A2592000 ExpiresByType font/truetype A2592000 ExpiresByType font/opentype A2592000 ExpiresByType application/x-font-woff A2592000 ExpiresByType application/vnd.ms-fontobject A2592000 Header set Connection keep-alive Header set Cache-Control "max-age=2592000, public" Header set Cache-Control "max-age=1209600, public" Header set Cache-Control "max-age=2592000, public" # css and js should use private for proxy caching https://developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching Header set Cache-Control "max-age=31536000, private" Header set Cache-Control "max-age=1209600, private"