URL pseudo-static rewrite using Urlrewrite

Source: Internet
Author: User


<?xml version= "1.0" encoding= "Utf-8"?>


<!--
For more information about how to configure an ASP. NET application, go to
http://go.microsoft.com/fwlink/?LinkId=169433
-


<configuration>


<!--using URLRewriter.dll--
<configSections>
<section name= "Rewriterconfig" requirepermission= "false" type= " URLRewriter.Config.RewriterConfigSerializerSectionHandler, Urlrewriter "/>
</configSections>


<appSettings>
<add key= "sqlconn" value= " bjylztbk358hbd023t4dvuzers8kd6g5tig8hzsvyuwzmufx3lbyeomxoitrdrk1erqh7waklta1rre4q5xgqluq== "/>


</appSettings>


<RewriterConfig>
<Rules>
<RewriterRule>
<lookfor>~/xueyuan/article/([0-9]*) </LookFor>
<SendTo>~/xueyuan/article.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
&LT;LOOKFOR&GT;~/XUEYUAN/C ([0-9]*) </LookFor>
<SendTo>~/xueyuan/articles.aspx?cid=$1</SendTo>
</RewriterRule>
<RewriterRule>

<lookfor>~/xueyuan/p ([0-9]*) </LookFor>
<SendTo>~/xueyuan/articles.aspx?pid=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>


<system.web>

<!--using URLRewriter.dll--
<add verb= "*" path= "*.aspx" type= "Urlrewriter.rewriterfactoryhandler, Urlrewriter"/>
<add verb= "*" path= "*.html" type= "Urlrewriter.rewriterfactoryhandler, Urlrewriter"/>


<add type= "Urlrewriter.modulerewriter, Urlrewriter" name= "Modulerewriter"/>
<!--<compilation debug= "true" targetframework= "4.5"/>
<compilation debug= "True" targetframework= "4.0"/>
<customerrors mode= "Off"/>
</system.web>


<system.webServer>
<validation validateintegratedmodeconfiguration= "false"/>
<modules>
<remove name= "Scriptmodule"/>
<add name= "Scriptmodule" precondition= "Managedhandler" type= "System.Web.Handlers.ScriptModule, System.Web.Extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 "/>
</modules>
<remove name= "webservicehandlerfactory-integrated"/>
<remove name= "ScriptHandlerFactory"/>
<remove name= "Scripthandlerfactoryappservices"/>
<remove name= "ScriptResource"/>

<add name= "HTML" path= "*.html" verb= "Get,post" modules= "Isapimodule" scriptprocessor= "C:\Windows\Microsoft.NET\ Framework\v4.0.30319\aspnet_isapi.dll "resourcetype=" Unspecified "precondition=" classicmode,runtimeversionv4.0, Bitness32 "/>
<add name= "ScriptHandlerFactory" verb= "*" path= "*.asmx" precondition= "Integratedmode" type= " System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, version=3.5.0.0, Culture=neutral, Publickeytoken=31bf3856ad364e35 "/>
<add name= "scripthandlerfactoryappservices" verb= "*" path= "*_appservice.axd" precondition= "IntegratedMode" type= "System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, version=3.5.0.0, Culture=neutral, Publickeytoken=31bf3856ad364e35 "/>
<add name= "ScriptResource" precondition= "Integratedmode" verb= "Get,head" path= "ScriptResource.axd" type= " System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, version=3.5.0.0, Culture=neutral, PublicKeyToken =31bf3856ad364e35 "/>
</system.webServer>


</configuration>



This article is from the "Day to Up" blog, so be sure to keep this source http://1433189426.blog.51cto.com/8055494/1706011

URL pseudo-static rewrite using Urlrewrite

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.