解决方案 »
- object对象如何在火狐浏览器中正常显示?
- 高分求ASP.NET中用COM组件导出Excel源代码,并且是基于模板的
- 一方有难 八方來助..............................
- 谁能给个 验证码刷新控件啊
- 请问这个论坛的treeview是vs自带的标准控件吗?
- 请问怎么限制TreeView的层数
- 开发树形菜单的利与弊
- C#如何在网页中实现对图片的放大缩小 和最简单的编辑?
- 小组自行开发的软件,在小组解散后的版权问题,请教
- 一个WEBFORM中用了两次AUTOPSTBACK导致第二个控件无法正常工作
- 选座相关问题
- 服务器上IIS和APACHE共存的问题,我一个域名后面现在需加8080 才能打开,我需要去掉
<configuration>
<configSections>
<!--配置重写规则节点-->
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>
<appSettings>
<add key="ConStringEncrypt" value="false" />
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|jcms.mdb;Persist Security Info=False" />
<add key="Version" value="aaaa" />
<add key="Copyright" value="246C6DDFF491EFB59799E73C49DECCD4" />
</appSettings>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/page_(\d+).html</LookFor>
<SendTo>~/showpage.aspx?id=$1</SendTo>
</RewriterRule>
</Rules>
<Rules>
<RewriterRule>
<LookFor>~/news_(\d+).html</LookFor>
<SendTo>~/showNews.aspx?id=$1</SendTo>
</RewriterRule>
</Rules>
<Rules>
<RewriterRule>
<LookFor>~/newlist_(\d+).html</LookFor>
<SendTo>~/newlist.aspx?type=$1</SendTo>
</RewriterRule>
</Rules>
<Rules>
<RewriterRule>
<LookFor>~/newlist_(\d+)_(\d+)\.html</LookFor>
<SendTo>~/newlist.aspx?type=$1&page=$2</SendTo>
</RewriterRule>
</Rules>
<Rules>
<RewriterRule>
<LookFor>~/prolist_(\d+).html</LookFor>
<SendTo>~/prolist.aspx?type=$1</SendTo>
</RewriterRule>
</Rules>
<Rules>
<RewriterRule>
<LookFor>~/prolist_(\d+)_(\d+)\.html</LookFor>
<SendTo>~/prolist.aspx?type=$1&page=$2</SendTo>
</RewriterRule>
</Rules>
<Rules>
<RewriterRule>
<LookFor>~/imglist_(\d+).html</LookFor>
<SendTo>~/imglist.aspx?type=$1</SendTo>
</RewriterRule>
</Rules>
<Rules>
<RewriterRule>
<LookFor>~/imglist_(\d+)_(\d+)\.html</LookFor>
<SendTo>~/imglist.aspx?type=$1&page=$2</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<system.web>
<httpRuntime executionTimeout="3600" maxRequestLength="1048576" />
<compilation debug="true">
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
<httpHandlers>
<add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
</httpHandlers>
<customErrors mode="Off" />
<authentication mode="Forms">
<forms name="forums" path="/" loginUrl="Login.aspx" protection="All" timeout="40">
</forms>
</authentication>
</system.web>
<system.webServer>
<handlers>
<add name="html" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
</handlers> </system.webServer>
</configuration>
http://www.iis.net/configreference/system.webserver
这个配置节从IIS7.0开始才有的