# This file is - if you set up HUGE correctly - not needed. # But, for fallback reasons (if you don't route your vhost to /public), it will stay here. RewriteEngine on RewriteRule ^(.*) public/$1 [L] # Everything from is for browser caching and is totally optional # Deflate Compression by FileType AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/atom_xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/x-shockwave-flash # Set browser caching to 1 month ExpiresActive On ExpiresByType text/css "access plus 1 month" ExpiresByType text/javascript "access plus 1 month" ExpiresByType text/html "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/x-icon "access plus 1 month" # if you want to prevent your site from being embedded into other sites via an iframe (sometimes used for scam), then # simply uncomment these lines below. you need to have apache rewrite headers activated, usually via # "a2enmod rewrite headers" on the command line #Header set X-Frame-Options Deny #Header always append X-Frame-Options SAMEORIGIN Header set Cache-Control "max-age=2592000, public" Header set Cache-Control "max-age=604800, public" Header set Cache-Control "max-age=216000, private"