index.php隐藏问题

浏览:270 发布日期:2017/03/05 分类:求助交流
tp发布到网站后,index.php就无法隐藏了,按照手册上配置也不行【IIS部署】
--->web.Config
<code>
<configuration>
<system.webServer>

</system.webServer>
</configuration>

<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAny">
<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>
</code>
最佳答案
评论( 相关
后面还有条评论,点击查看>>