2012-10-02 80 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."这种方式链接保持未编码。