2012-11-15 76 views
0
<rule name="List_of_mfrs" enabled="true"> 
    <match url="/Manufacturers_(\w)" ignoreCase="false" /> 
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> 
    <action type="Rewrite" url="/list_of_mfrs/mfrs.cfm?ot={R:1}" /> 
</rule> 

当我输入:http://MyLocalHost/list_of_mfrs/mfrs.cfm?ot=R它得到404错误。为什么?Url在IIS中重写得到404

回答

0

我得到了它发生的原因:因为在@type字符/@url

这里是正确的文本:

<rule name="List_of_mfrs" enabled="true"> 
    <match url="Manufacturers_(\w)" ignoreCase="false" /> 
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> 
    <action type="Rewrite" url="list_of_mfrs/mfrs.cfm?ot={R:1}" /> 
</rule>