URLRewriter.dll__config

来源:互联网 发布:软件研发立项报告模板 编辑:程序博客网 时间:2024/04/30 15:48

<configuration>
 <configSections>
        <!--URL重写,转向节点0-->
        <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
  </configSections>

 <!--URL重写,转向节点1-->
    <RewriterConfig>
        <Rules>
            <RewriterRule>
                <LookFor>~/(/d+)</LookFor>
                <SendTo>~/view.aspx?aid=$1</SendTo>
            </RewriterRule>
            <RewriterRule>
                <LookFor>~/index_(.*)_(/d+)/.aspx</LookFor>
                <SendTo>~/ST_index.aspx?c_id=$2&amp;name=$1</SendTo>
            </RewriterRule>
        </Rules>
    </RewriterConfig>

 <system.web>

    <httpModules>
            <!--URL重写,转向节点2-->
            <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter"/>
   <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
     </httpModules>
 </system.web>

</configuration>

原创粉丝点击