Loading

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

 

posted @ 2016-04-22 17:48  哈利路亚健儿奋起步伐  阅读(1154)  评论(0编辑  收藏  举报