thinkphp 在IIS下如何隐藏index.php 用了网上很多办法都没有解决

浏览:1447 发布日期:2014/09/19 分类:求助交流
在IIS的高版本下面可以配置web.Config,在中间添加rewrite节点:

<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>


'URL_MODEL' => '2',已开启

求各位大神看一下那里不对
最佳答案
评论( 相关
后面还有条评论,点击查看>>