iis url重写用户友好url多个规则冲突

iis url重写用户友好url多个规则冲突,iis,url-rewriting,iis-8,url-rewrite-module,Iis,Url Rewriting,Iis 8,Url Rewrite Module,我一直在尝试使用IIS8上的url重写模块为我的两个cfm页面创建用户友好的url。这就是说,由于规则或其他方面的相似性,似乎存在某种冲突 这就是我想要实现的目标。以下各页: www.mywebsite.com/news.cfm?category=microsoft www.mywebsite.com/news.cfm?category=apple etc www.mywebsite.com/blog.cfm?title=sometitle www.mywebsite.com/blog.cfm

我一直在尝试使用IIS8上的url重写模块为我的两个cfm页面创建用户友好的url。这就是说,由于规则或其他方面的相似性,似乎存在某种冲突

这就是我想要实现的目标。以下各页:

www.mywebsite.com/news.cfm?category=microsoft
www.mywebsite.com/news.cfm?category=apple
etc

www.mywebsite.com/blog.cfm?title=sometitle
www.mywebsite.com/blog.cfm?title=sometitle
etc
应该是这样的:

www.mywebsite.com/news/microsoft
or this
www.mywebsite.com/microsoft

www.mywebsite.com/blog/sometitle
or this
www.mywebsite.com/sometitle
你明白了

这是我的密码:

<rule name="RedirectUserFriendlyURL4" stopProcessing="true">
    <match url="^news\.cfm$" />
    <conditions>
        <add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
        <add input="{QUERY_STRING}" pattern="^category=([^=&amp;]+)$" />
    </conditions>
    <action type="Redirect" url="news/{C:1}" appendQueryString="false" />
</rule>
<rule name="RewriteUserFriendlyURL4" stopProcessing="true">
    <match url="^news/([^/]+)/?$" />
    <conditions>
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    </conditions>
    <action type="Rewrite" url="news.cfm?category={R:1}" />
</rule>

<rule name="RedirectUserFriendlyURL5" stopProcessing="true">
    <match url="^blog\.cfm$" />
    <conditions>
        <add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
        <add input="{QUERY_STRING}" pattern="^title=([^=&amp;]+)$" />
    </conditions>
    <action type="Redirect" url="blog/{C:1}" appendQueryString="false" />
</rule>
<rule name="RewriteUserFriendlyURL5" stopProcessing="true">
    <match url="^blog/([^/]+)/?$" />
    <conditions>
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    </conditions>
    <action type="Rewrite" url="blog.cfm?title={R:1}" />
</rule>

上面的规则不能一起工作,两个页面重定向到第一个规则中设置的页面。这可以用一条规则来完成,还是需要使用两条规则?我怎样才能解决这个问题?我非常感谢你在这件事上的帮助。我正在Windows和IIS 8上使用ColdFusion 10。

我知道已经太晚了,但您是如何解决此问题的?我有同样的