【发布时间】:2015-11-08 03:49:27
【问题描述】:
<rule name="Posts2" enabled="true">
<match url="^index.cfm\?section=latest.news&id=(.*)" />
<action type="Rewrite" url="post.php?id={R:1}" />
</rule>
问题在于正则表达式 - 有什么想法吗?我似乎无法解决它。我已经在http://www.xmlvalidation.com/ 上运行它,它说
The reference to entity "id" must end with the ';' delimiter.
当我将 & 符号更改为 &amp; 时,重写似乎不适用于诸如 /index.cfm?section=latest.news&id=14726 之类的 URL,尽管它通过了 IIS 中的测试。即使我避开了点和问号,它也不起作用
【问题讨论】:
标签: regex iis url-rewriting