나는 이것을 두 가지 규칙으로 퍼지 할 수 있었다. 내가 좋아할만큼 예쁜 것은 아니지만 무엇을 할 수 있습니까?
<rule name="ProductsPagingRule" stopProcessing="false">
<match url="^products([a-z0-9\-/]*)(?:/([0-9]+)/)"/>
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="products{R:1}/?Page={R:2}" />
</rule>
<rule name="ProductsRule" stopProcessing="true">
<match url="^products/([a-z0-9\-/]*)/" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="products.aspx?PageId={R:1}" />
</rule>
가 가장 가까운 내가 하나의 규칙과 함께였다 :
^products(?=(?:(?:[a-z0-9\-/]*)/([0-9]+)/$)?)(.[a-z0-9\-/]*)
난 아직도 ...
의 몇 사람이 용감 느낌 않다면 이것은 하나의 규칙에서 수행보고에 관심이있을 것 내가 언급하는 것을 잊어 버린 것들 .... 1) 그것은 후행 슬래시를 시행해야합니다. 2) URL 구조에는 "attx /"폴더가 여러 개있을 수 있습니다. –
그게 당신이 찾고있는 것 같아서 얼마를 내게 그 돈을 지불 할 거니? –
http://whataveyoutried.com/ – hometoast