iis7下的php实现urlrewrite,并隐藏index.php

 1 <rewrite>
 2  <rules>
 3  <rule name="OrgPage" stopProcessing="true">
 4  <match url="^(.*)$" />
 5  <conditions logicalGrouping="MatchAll">
 6  <add input="{HTTP_HOST}" pattern="^(.*)$" />
 7  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
 8  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
 9  </conditions>
10  <action type="Rewrite" url="index.php/{R:1}" />
11  </rule>
12  </rules>
13  </rewrite>
View Code
原文地址:https://www.cnblogs.com/arvintang/p/5422259.html