A class library is required: urlrewriter. dll (this test version 1.0.1495.18710)
Official Website: http://download.microsoft.com/download/0/4/6/0463611e-a3f9-490d-a08c-877a83b797cf/MSDNURLRewriting.msi
Add URL rewriting configuration to the <configsections> </configsections> node
<! -- URL rewriting configuration rewriting class -->
< Section Name = "Rewriterconfig" Type = "Urlrewriter. config. rewriterconfigserializersectionhandler, urlrewriter" />
Configure the forwarding address in <configuration> </configuration>
1 <! -- URL rewriting forwards the captured page to the actual address -->
2 < Rewriterconfig >
3 < Rules >
4 < Rewriterrule >
5 < Lookfor > ~ /D (\ D +) \. aspx </ Lookfor >
6 < Sendto > ~ /Default. aspx? Id = $1 </ Sendto >
7 </ Rewriterrule >
8 < Rewriterrule >
9 < Lookfor > ~ /D (\ D +) \. html </ Lookfor >
10 < Sendto > ~ /Default. aspx? Id = $1 </ Sendto >
11 </ Rewriterrule >
12 </ Rules >
13 </ Rewriterconfig >
14 <! -- URL rewriting forwards the captured page to the actual address (end) -->
<Httphandlers>
1 <! -- URL rewriting needs to capture *. ASPX page -->
2 < Add Verb = "*" Path = "/Website3/*. aspx" Type = "Urlrewriter. rewriterfactoryhandler, urlrewriter" />
3 < Add Verb = "*" Path = "/Website3/*. html" Type = "Urlrewriter. rewriterfactoryhandler, urlrewriter" />