<?xml version= "1.0 " encoding= "gb2312 " ?>
<configuration xmlns= "http://schemas.microsoft.com/.NetConfiguration/v2.0 ">
<configSections>
<section name= "RewriterConfig " type= "URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter " />
</configSections>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor> ~/web/default\ </LookFor>
<SendTo> ~/web/default.aspx </SendTo>
</RewriterRule>
<RewriterRule>
<LookFor> ~/web/book-(\d{4})\ </LookFor>
<SendTo> ~/web/detail.aspx?ID=$1 </SendTo>
</RewriterRule>
<RewriterRule>
<LookFor> ~/web/blog-(\d{4})\ </LookFor>
<SendTo> ~/web/blogdetail.aspx?ID=$1 </SendTo>
</RewriterRule>
<RewriterRule>
<LookFor> ~/web/channel-(\d{4})\ </LookFor>
<SendTo> ~/web/channel.aspx?segmentID=$1 </SendTo>
</RewriterRule>
<RewriterRule>
<LookFor> http://(.[a-z][A-Z][0-9]*)\.txtpub\.com/ </LookFor>
<SendTo> ~/web/space.aspx?userid=$1 </SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<appSettings/>
<connectionStrings/>
<system.web>
<customErrors defaultRedirect= " " />
<httpModules>
<add type= "URLRewriter.ModuleRewriter, URLRewriter " name= "ModuleRewriter " />
</httpModules>
<!--
设置 compilation debug= "true " 将调试符号插入
已编译的页面中。但由于这会
影响性能,因此只在开发过程中将此值
设置为 true。
-->