How to: Configure Web Server MIME types for SVG

The correct MIME type for SVG is "image/svg+xml", which must be added to Web Server. This configuration is important. Otherwise Web Browse may not get SVG –files correctly.


How to add MIME types to IIS 4.0
 

MIME types can be registered in IIS 4.0 using the Internet Service Manager console.

How to add MIME Types to IIS 5.0
 

MIME types can be registered in IIS 5.0 using the IIS snap-in.
 

To add the SVG MIME type to all sites running on a given machine:
 


How to add MIME Types to Apache

Put a file in the directory with the SVG -files called ".htaccess" containing

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

or add those lines to the existing .htaccess file.