How to make IIS6 support svg image display

  

A code tested today, everything is normal in the local, but after uploading to the server, I found some icons are not displayed. The picture exists, but it can't be accessed. It is Baidu. The picture of .svg wants to open normally on iis, and you need to do some mapping.

1, first open IIS - find your website right click property - HTTP header - click MIME type

2, click New, enter the extension as follows: .svgMIME type :image/svg+xml

After all the addition is complete, click OK to save and exit the refresh page to see if the display is normal. If it doesn't work, check if you have less punctuation.

Similarly, IIS6 can also support WOFF/WOFF2. The correct MIME information should be written as follows: Extension: .woff MIME type: application/x-font-woff Extension: .woff2 MIME type: application/x-font-woff Add After restarting the site, you can see the effect. IIS7 below the deployment method, please refer to the IIS7 environment to achieve svg/woff/woff2 font display normally

Copyright © Windows knowledge All Rights Reserved