2018-12-01 17:13:51 +00:00
|
|
|
---
|
|
|
|
layout: none
|
|
|
|
permalink: .htaccess
|
|
|
|
---
|
2018-12-03 21:43:12 +00:00
|
|
|
# Serve .html files without extensions
|
2018-12-03 14:49:02 +00:00
|
|
|
Options +MultiViews
|
2018-12-03 21:43:12 +00:00
|
|
|
# If a SVG and a PNG exists the prefer the SVG
|
2018-12-09 21:22:05 +00:00
|
|
|
AddType image/svg+xml;qs=0.9 svg sgvz
|
2018-12-03 21:43:12 +00:00
|
|
|
AddType image/png;qs=0.8 png
|
|
|
|
# Work around Apache bug from 2002
|
|
|
|
# https://bz.apache.org/bugzilla/show_bug.cgi?id=53595
|
|
|
|
# https://kevinlocke.name/bits/2012/07/20/serving-xhtml-with-apache-multiviews/
|
|
|
|
Header always edit "Content-Type" ";\s*qs=[0-9]*(?:\.[0-9]+)?\s*" ""
|
2018-12-09 21:22:05 +00:00
|
|
|
# Gzip these file types
|
2018-12-15 19:48:45 +00:00
|
|
|
AddOutputFilter DEFLATE html
|
2018-12-09 21:22:05 +00:00
|
|
|
AddOutputFilter DEFLATE svg
|
|
|
|
AddOutputFilter DEFLATE css
|
|
|
|
AddOutputFilter DEFLATE js
|
|
|
|
|