Format of the web. conf configuration file
<? Xml version = "1.0" encoding = "UTF-8"?>
<Configuration>
<System. webServer>
<Rewrite>
<Rules>
<Rule name = "Imported Rule 1">
<Match url = "ShowProduct/([0-9] * developer.html"/>
<Action type = "Rewrite" url = "/view. asp? Id = {R: 1} "/>
</Rule>
<Rule name = "Imported Rule 2">
<Match url = "about _ ([0-9] * ).html"/>
<Action type = "Rewrite" url = "/about. asp? Id = {R: 1} "/>
</Rule>
</Rules>
</Rewrite>
</System. webServer>
</Configuration>
The configuration of the web. config file should be adjusted when other rules are imported:
1. You do not need to add "/" at the beginning of the match statement, for example:
<Match url = "/ShowProduct/([0-9] * developer.html"/>
To:
<Match url = "ShowProduct/([0-9] * mirror.html"/> (Note: remove the first "/")
2. Do not use escape characters in the action Statement. For example:
<Action type = "Rewrite" url = "/view \. asp \? Id = {R: 1} "/>
To:
<Action type = "Rewrite" url = "/view. asp? Id = {R: 1} "/> (Note: Remove". "and"?" And "&" is written as "& amp ;")