jzitelli/Primrose/master/.htaccess - Htaccess File

jzitelli/Primrose/master/.htaccess

# RewriteEngine On
# RewriteCond %{HTTPS} !=on
# RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
Options -Indexes
AddType text/cache-manifest .appcache
ExpiresByType text/cache-manifest "access plus 0 seconds"
#Gzip
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|min.js|php|pl)$
mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
#End Gzip
# BEGIN Caching
<ifModule mod_headers.c>
<filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|js)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
<filesMatch "\.(css|json)$">
Header set Cache-Control "max-age=604800, public"
</filesMatch>
<filesMatch "\.(html)$">
Header set Cache-Control "max-age=1, private, must-revalidate"
</filesMatch>
</ifModule>
# END Caching
<IfModule pagespeed_module>
 ModPagespeed on
 ModPagespeedEnableFilters remove_comments,rewrite_javascript,rewrite_css,rewrite_images
</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTPS, SERVER_NAME

Comments

Apache