hi

I have three pieces of the ASPX page.

dynamic.aspx?id= dynamic number = 01-canada,02-usa database row

charge.aspx?id= dynamic number

number.aspx?id= dynamic number

x.com/01-canada/charge

x.com/01-canada/number

x.com/02-usa/charge

x.com/02-usa/number

How do I fix.


Code:
<rules>
                <rule name="Imported Rule 1">
                    <match url="(.*)" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{URL}" pattern="(.*)" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" url="dynamic.aspx?id={R:1}" appendQueryString="false" />
                </rule>
              <rule name="Imported Rule 2">
                <match url="/charge" ignoreCase="false" />
                <conditions logicalGrouping="MatchAll">
                  <add input="{URL}" pattern="/charge" ignoreCase="false" />
                </conditions>
                <action type="Rewrite" url="charge.aspx?id={R:1}" appendQueryString="false" />
              </rule>
             <rule name="Imported Rule 3">
                <match url="/number" ignoreCase="false" />
                <conditions logicalGrouping="MatchAll">
                  <add input="{URL}" pattern="/number" ignoreCase="false" />
                </conditions>
                <action type="Rewrite" url="number.aspx?id={R:1}" appendQueryString="false" />
              </rule>
            </rules>