SVG Not Displaying

  • September 11, 2013
  • Apache

I’ve just been configuring and setting up a server environment for a project i’ve been building. Everything working at it should, except my SVGs were not showing.

In this instance, Apache doesn’t know how to serve them up, so I added the following lines to a .htaccess file in the document root:

AddType image/svg+xml svg
AddType image/svg+xml svgz

And it’s now sorted, serving up SVGs properly. yay.

No Comments

You can leave the first : )

Leave a Reply

Your email address will not be published. Required fields are marked *