1
使用URL重写,我们有很多,其采取的形式URL重写 - 删除URL如果结尾匹配特定字符串
/something/else/index.cfm
/this/that/index.cfm
我希望做的是去除从这些例子中,/index.cfm
旧网址的
任何想法?
谢谢
使用URL重写,我们有很多,其采取的形式URL重写 - 删除URL如果结尾匹配特定字符串
/something/else/index.cfm
/this/that/index.cfm
我希望做的是去除从这些例子中,/index.cfm
旧网址的
任何想法?
谢谢
<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>