//web.config //1、添加配置节点 <httpHandlers> <!--设置应用程序映射(url重写后要加的)--> <add path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory" validate="true"/> </httpHandlers> //2、还有<compilation>下插入 <!--设置应用程序映射(url重写后要加的)--> <buildProviders> <add extension=".html" type="System.Web.Compilation.PageBuildProvider" /> </buildProviders> //这样就能打开原本的.html后缀的名称了