2012-10-02 79 views
0


要訪問的網頁在我的網站,我用這個規則編碼與的.htaccess

^/map/(.+)\-([0-9]{1,5})/map-.+\-street\-([a-z])\.html$ 

我使用的鏈接是www.mydomain.com/map/neus%e4%df-86/map-neus%e4%df-street-a.html。 當我將chekc IIS7重寫日誌鏈接轉換爲
/map/neusä߆/map-neusäß-street-a.html,當然我得到了404錯誤。

所以,我的問題是,爲什麼neus%e4%df-86 transormed到neusä߆ 而不是neustäß
(附註:頁面-S編碼字符集是= ISO-8859-1)

回答

0

於是,我找到了解決辦法。規則末尾沒有設置[NE]標誌。與Helicon的文檔相關,"NE: Don't escape output. By default ISAPI_Rewrite will encode all non-ANSI characters as %xx hex codes in output."這種方式鏈接保持未編碼。