求IIS7的Rrwrite规则

浏览:921 发布日期:2013/07/15 分类:求助交流
在TP手册中的web.config规则不可用,将URL_MODEL改成2后出现404错误。

手册中的代码:<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}” matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" />
</rule>
</rules>
</rewrite>
手册地址:http://doc.thinkphp.cn/manual/hidden_index.html


请问能给我提供一份正确的web.config规则吗?



【已解决】
感谢朋友们的大力相助,附上解决方法:
手册中的iis规则是正确规则,可是在规则的第8行中存在一个标点错误(写成了中文引号)。把这个引号改成引文半角引号即可解决问题。
最佳答案
评论( 相关
后面还有条评论,点击查看>>