asp.net 伪静态后真实的.html无法访问的解决方法
asp.net是现在比较主流的程序,伪静态也是很有利于优化收录的,伪静态成了很多程序的选择,下面讲一下asp.net 伪静态后真实的.html无法访问的解决方法:
在web.config中<system.web>节点添加以下项目。
在web.config中<system.web>节点添加以下项目。
<compilation>
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider"/>
</buildProviders>
</compilation>
<httpHandlers>
<add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
</httpHandlers>
相关问题
下载此文章 (欢迎转载,请注明出处:http://www.xmxwl.net/help/host/20130504/12995.html)