zblog的IIS7,IIS8偽靜態(tài)腳本
zblog的IIS偽靜態(tài),應(yīng)用于香港空間的windows空間上,web.config腳本如下
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="/ Z-BlogPHP Imported Rule" stopProcessing="true"> <match url="^.*?" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:0}" /> </rule> <rule name="/ Z-BlogPHP Imported Rule index.php" stopProcessing="true"> <match url="^index.php/.*?" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" /> </conditions> <action type="Rewrite" url="index.php/{R:0}" /> </rule> </rules> </rewrite> </system.webServer> </configuration>