1. 程式人生 > >Yii IIS8下使用偽靜態【Url Rewrite】去掉index.php

Yii IIS8下使用偽靜態【Url Rewrite】去掉index.php

ons process end file .cn col spa filename tof

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <directoryBrowse enabled="false" />
      <rewrite>
        <rules>
          <rule name="Hide Yii Index" stopProcessing="true">
            <match url="." ignoreCase="false" />
<conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> </conditions
> <action type="Rewrite" url="index.php" appendQueryString="true" /> </rule> </rules> </rewrite> </system.webServer> </configuration>

轉自:http://ju.outofmemory.cn/entry/178850

Yii IIS8下使用偽靜態【Url Rewrite】去掉index.php