这个是配置文件!!
<?xml version="1.0" encoding="gb2312"?>
<configuration>
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~BuyBook/B(\d+)\.aspx</LookFor>
<SendTo>~/BuyBook/Buy.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/N(\d+)\.aspx</LookFor>
<SendTo>~/NewsType.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/W(\d+)\.aspx</LookFor>
<SendTo>~/WriterType.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/WB(\d+)\.aspx</LookFor>
<SendTo>~/WriterType.aspx?bookid=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/GuestBook/B(\d+)\.aspx</LookFor>
<SendTo>~/GuestBook/Index.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/GuestBook/W(\d+)\.aspx</LookFor>
<SendTo>~/GuestBook/Writer.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Vip/B(\d+)\.aspx</LookFor>
<SendTo>~/Vip/BuyOrder.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Vip/V(\d+)\.aspx</LookFor>
<SendTo>~/Vip/ShowBookOrder.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/(\d+)\.aspx</LookFor>
<SendTo>~/Book/ShowBook.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/(\d+)/(\d+)\.aspx</LookFor>
<SendTo>~/Book/ReadBook.aspx?id=$1&textid=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/List/(\d+)\.aspx</LookFor>
<SendTo>~/Book/ReadList.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/Index/(\d+)\.aspx</LookFor>
<SendTo>~/Book/ReadIndex.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/VLC(\d+)\.aspx</LookFor>
<SendTo>~/Book/VipShowBookList.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/VLN(\d+)\.aspx</LookFor>
<SendTo>~/Book/VipShowBookList.aspx?nclassid=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/LC(\d+)\.aspx</LookFor>
<SendTo>~/Book/ShowBookList.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/LN(\d+)\.aspx</LookFor>
<SendTo>~/Book/ShowBookList.aspx?nclassid=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/D(\d+)\.aspx</LookFor>
<SendTo>~/Book/ShowBookDown.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/B(\d+)N(\d+)\.aspx</LookFor>
<SendTo>~/Book/ShowBookNclassText.aspx?bookid=$1&nclassid=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/C(\d+)\.aspx</LookFor>
<SendTo>~/Book/ShowBookCom.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Book/J(\d+)\.aspx</LookFor>
<SendTo>~/Book/ShowBookCom.aspx?id=$1&j=1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Essay/Read/(\d+)\.aspx</LookFor>
<SendTo>~/Essay/ReadBook.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Essay/W(\d+)\.aspx</LookFor>
<SendTo>~/Essay/WriterType.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Essay/LC(\d+)\.aspx</LookFor>
<SendTo>~/Essay/Class.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Essay/CN(\d+)\.aspx</LookFor>
<SendTo>~/Essay/Class.aspx?nclassid=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Essay/U(\d+)\.aspx</LookFor>
<SendTo>~/Essay/U.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/Essay/CM(\d+)\.aspx</LookFor>
<SendTo>~/Essay/Comment.aspx?id=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<appSettings>
<add key="ebaistr" value="Server=(local);User id=sa;Pwd=50159132222;Server=(local);User id=sa;Pwd=50159132222;Database=WanerSoft2006"></add>
<!--定义数据连接,请更改用户名、密码、数据名称-->
<add key="Foldersclass" value="0"></add>
<!--定义是否使用虚拟目录或二级目录及以下目录等级,如果不是根目录请设置为1, 0 否,1是-->
<add key="RootFolder" value="book"></add>
<!--如果是虚拟目录或二级目录及以下,请填写目录名称!前面和最后不要带/号-->
<add key="StoryDir" value="Html/Book"></add>
<!--生成连载Html保存路径,前面和最后不要带/号-->
<add key="EssayDir" value="Html/Essay"></add>
<!--生成短篇Html保存路径,前面和最后不要带/号-->
<add key="XmlDir" value="Xml"></add>
<!--生成Xml文件保存路径,此目录一般是存放推荐列表或者其他列表用的,前面和最后不要带/号-->
<add key="DownImgDir" value="DownImg"></add>
<!--远程抓取图片保存目录,格式为 此目录名/书籍ID/文件名,前面和最后不要带/号-->
<add key="UpPhotoFiles" value="UploadPhoto"></add>
<!--上传图片地址,包括封面,前面和最后不要带/号-->
<add key="BookTextDir" value="BookTextDir/Text/Book/Save"></add>
<!--连载章节内容war文件保存地址,请自行更改,前面和最后不要带/号-->
<add key="EssayTextDir" value="BookTextDir/Text/Essay/Save"></add>
<!--短篇文章内容war文件保存地址,请自行更改,前面和最后不要带/号-->
<add key="AdsDir" value="Ads"></add>
<!--站内广告文件存放目录,前面和最后不要带/号-->
<add key="UpFileExt" value="jpg,gif,bmp,jpeg,png"></add>
<!--允许上传文件的类型,用,号隔开-->
<add key="A_login" value="Admin/Error.aspx"></add>
<!--定义后台验证错误后的转向地址,可修改为其他,掩盖实际登陆页面!前面和最后不要带/号-->
</appSettings>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<!--程序正常运行后,请更改debug为false -->
<customErrors mode="Off" />
<!--自定义错误信息,"On" 始终显示自定义(友好的)信息。"Off" 始终显示详细的错误信息。"RemoteOnly" 只对不在本地 Web 服务器上运行的用户显示自定义(友好的)信息。\ -->
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
<!--<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="120" />-->
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="120" />
<!--会话状态设置,Session超时为120分钟,若要禁用 Cookie,请设置 sessionState cookieless="true"。-->
<globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" />
<!--全球化设置-->
<pages buffer="true" enableSessionState="true" validateRequest="false" enableViewState="true" enableViewStateMac="false" smartNavigation="false" />
<!--如果为.net SDK 1.0及以前版本,请删除validateRequest="false" -->
<httpRuntime maxRequestLength="409600" executionTimeout="900" appRequestQueueLimit="1000" useFullyQualifiedRedirectUrl="true" />
<!--控制用户上传文件最大为4M,最长时间为60秒,最多请求数为1000-->
<httpModules>
<add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
<add name="WebbHttpModule" type="WanerSoft.Sys.Upload.WebbHttpModule, WanerSoft.Sys.Upload" />
</httpModules>
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
<add verb="*" path="progress.ashx" type="WanerSoft.Sys.Upload.WebbUploadStatusHandler, WanerSoft.Sys.Upload" />
</httpHandlers>
</system.web>
<startup>
<requiredRuntime version="v1.1.4322" />
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>