1
我已閱讀iis.net上的文章Creating Rewrite Rules for the URL Rewrite Module,我想從我的網站中刪除一些細分。IIS URL重寫規則 - 如何刪除某些段?
例如,從:
/article/archive/2289/01/articleid/191/reftab/36/word1 word2 word3
到:
/article/articleid/191/word1-word2-word3
我已經改變了我的web.config文件的,但我不能夠解決我的問題:
<rewrite>
<rules>
<rule name="Remove segments">
<match url="^article/archive/2289/01/([0-9]+)/([_0-9a-z-]+)" />
<action type="Rewrite" url="article/articleid/{R:1}/{R:2}" />
</rule>
</rules>
</rewrite>