YII 伪静态 IIS7 方法 web.config

YII 伪静态 IIS7 方法 web.config

 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
  <rule name="Main Rule" stopProcessing="true">
    <match url="^(.*/)*filename"/>
    <conditions logicalGrouping="MatchAll">
      <add input="{REQUEST_FILENAME}" matchType = "IsFile" negate="true"/>
      <add input="{REQUEST_FILENAME}" matchType = "IsDirectory" negate="true"/>
    </conditions>
    <action type="Rewrite" url="/xiweicrm/index.php"/>
  </rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

  

<match url="^(.*/)*filename"/>
注意把filename 改成对应的yii目录地址,我的这个是把YII嵌套到另一个程序里边了
posted @ 2014-04-30 11:56  彦桢  阅读(1719)  评论(0编辑  收藏  举报