2016-07-13 9 views
1

場合はURLリライトを使用してURLの末尾を削除し、私たちは私がやりたいどのような形にURLリライト - マッチ固有の文字列

/something/else/index.cfm 
/this/that/index.cfm 

を取る古いURLの多くを持っているこれらの例

から /index.cfmを削除しています

アイデア

おかげ

答えて

0
<rule name="Remove Trailing Index.cfm" enabled="true"> 
    <match url="^(.*)/index.cfm" /> 
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> 
     <add input="{R:1}" pattern="category" negate="true" /> 
     <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> 
     <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> 
    </conditions> 
    <action type="Redirect" url="/{R:1}" /> 
</rule>