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:

[code]
AddType image/svg+xml svg
AddType image/svg+xml svgz
[/code]

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




No Comments


No comments yet.



Leave a Reply

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