我想在网址中替换任何提及单词的内容:
例如,以下内容:
"something/abc/342"
,"abc/hithere/something/2"
将重写为:
"REPLACED/abc/342"
,"abc/hithere/REPLACED/2"
我不完全确定它是如何工作的,但它可能看起来像这样:
<rewrite>
<rules>
<rule name="Rewrite something to REPLACED">
<match url="^/(something)/gi" />
<action type="Rewrite" url="{putbackinanything}REPLACED{putbackinanything}" />
</rule>
</rules>
</rewrite>