I recently migrated a site to a new server. I'm now getting this error from Firefox when attempting to load an .svgz file:
XML Parsing Error: not well-formed
The svg rendered fine on the old server, so I'm assuming this is a problem with the Apache configuration. I've tried adding the following to the .htaccess file for the site:
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE image/svg+xml
# Or, compress certain file types by extension:
SetOutputFilter DEFLATE
SetOutputFilter DEFLATE
and:
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
Neither seem to work . Any ideas how to get the SVG to load?
Asked by symlink
(221 rep)
Feb 19, 2017, 10:41 PM
Last activity: Jun 27, 2018, 10:02 AM
Last activity: Jun 27, 2018, 10:02 AM