jenskooij/cloudcontrol/master/cloudcontrol/.htaccess
Options +FollowSymLinks
RewriteEngine On
# Disallow libwww-perl access
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* ? [F,L]
# Rewrite all requests to the www folder
RewriteCond %{REQUEST_URI} !^/www/.*$
RewriteRule ^(.*)$ www/$1 [L]
# Allow caching if available
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/icon "access plus 1 month"
ExpiresByType text/html "access plus 2 days"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
</IfModule>
<IfModule mod_headers.c>
# Set XSS Protection header
Header set X-XSS-Protection "1; mode=block"
</IfModule>
On Github License
Files
Download PDF of Htaccess file