url重写—适用html为伪静态后真实的html无法访问的解决方法

来源:互联网 发布:淘宝打包员累吗? 编辑:程序博客网 时间:2024/05/16 08:51

Web.config中加入如下代码

<compilation><buildProviders><add extension=".html" type="System.Web.Compilation.PageBuildProvider"/></buildProviders></compilation><httpHandlers><add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/></httpHandlers>