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.
Select Default Web Site / Properties.
Select the HTTP Headers tab.
Under MIME Map, click the File Types tab and select New Type.
Type .svg in the Extension field and
image/svg+xml in the Content Type field. Click OK.
How to add MIME Types to IIS 5.0
MIME types can be registered in IIS 5.0
using the IIS snap-in.
Select Default Web Site / Properties.
Select the HTTP Headers tab.
Under MIME Map, click the File Types tab and select New Type.
Type .svg in the Extension field and image/svg+xml in the Content Type field. Click OK.
To add the SVG MIME type to all sites
running on a given machine:
Select Internet Information Services / Properties.
Under Computer MIME Map, click the Edit button and select New Type.
Type .svg in the Extension field and image/svg+xml in the Content Type field. Click OK.
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.