5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-25 08:03:06 +00:00

Remove htaccess in favour of .htaccess

No longer need workaround
This commit is contained in:
Nick Sellen 2018-12-16 10:05:32 +00:00
parent 326a17716e
commit 79ac451b4a

View File

@ -1,13 +1,15 @@
# Serve .html files without extensions # Serve .html files without extensions
Options +MultiViews Options +MultiViews
# If a SVG and a PNG exists the prefer the SVG # If a SVG and a PNG exists the prefer the SVG
AddType image/svg+xml;qs=0.9 svg AddType image/svg+xml;qs=0.9 svg sgvz
AddType image/png;qs=0.8 png AddType image/png;qs=0.8 png
# Work around Apache bug from 2002 # Work around Apache bug from 2002
# https://bz.apache.org/bugzilla/show_bug.cgi?id=53595 # https://bz.apache.org/bugzilla/show_bug.cgi?id=53595
# https://kevinlocke.name/bits/2012/07/20/serving-xhtml-with-apache-multiviews/ # https://kevinlocke.name/bits/2012/07/20/serving-xhtml-with-apache-multiviews/
Header always edit "Content-Type" ";\s*qs=[0-9]*(?:\.[0-9]+)?\s*" "" Header always edit "Content-Type" ";\s*qs=[0-9]*(?:\.[0-9]+)?\s*" ""
# Gzip these file types
AddOutputFilter DEFLATE html
AddOutputFilter DEFLATE svg AddOutputFilter DEFLATE svg
AddOutputFilter DEFLATE css AddOutputFilter DEFLATE css
AddOutputFilter DEFLATE js AddOutputFilter DEFLATE js