RewriteEngine on
AddType image/svg+xml .svg .svgz
AddEncoding x-gzip .svgz