如果设置整站,就在根目录web.config设置如下参数,如果是指定目录,在该目录下的web.config文件设置如下参数,如果没有web.config文件,可以直接新建一个:
<?xml version="1.0" encoding="UTF-8"?>
<configuration><system.webServer><staticContent><remove fileExtension=".html" /> <mimeMap fileExtension=".html" mimeType="text/html;charset=utf-8" /></staticContent> </system.webServer>
</configuration>