2
的IIS URL重寫模塊附帶3內置functions:字符串函數
* ToLower - returns the input string converted to lower case.
* UrlEncode - returns the input string converted to URL-encoded format. This function can be used if the substitution URL in rewrite rule contains special characters (for example non-ASCII or URI-unsafe characters).
* UrlDecode - decodes the URL-encoded input string. This function can be used to decode a condition input before matching it against a pattern.
的函數可以被調用,通過使用以下語法: {函數名:any_string}
的問題是:這個名單通過引入更換功能是可用於重寫規則的動作或狀態內改變的值被擴展?
框架問題的另一種方法:有什麼辦法對使用此模塊的URL進行全局替換嗎?
看來,你只限於使用正則表達式和反向引用來構建字符串 - 即沒有查找/替換機制來替換的Y的{REQUEST_URI} X的每一個例如,無知道有多少實例。
我已經快速瀏覽了2.0 RTW中的可擴展性introduced,並且沒有看到任何介紹此的「簡單」方法。
只是一個供參考的開發者,這似乎並沒有,如果你是針對4.0框架的工作,就不會出現在IIS 。 – Sarkie 2012-02-07 13:05:42