想在windows
於是下載了IIS
<defaultDocument enabled="true">
<files>
<add value="Default
<add value="Default
<add value="index
<add value="index
<add value="iisstart
<add value="default
<add value="index
</files>
</defaultDocument>
<fastCgi>
<application fullPath="C:phpphp
<environmentVariables>
<environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="
<environmentVariable name="PHPRC" value="C:Program Files (x
</environmentVariables>
</application>
</fastCgi>
<add name="PHP_FastCGI" path="*
尤其要注意的一是
以上配置中
<system
<urlCompression doStaticCompression="true" doDynamicCompression="true" />
</system
<configuration>
<system
<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index
</rule>
</rules>
</rewrite>
</system
<system
<urlCompression doStaticCompression="true" doDynamicCompression="true" />
</system
</configuration>
這樣就完全配置完畢了
iisexpress
iisexpress
訪問一下
From:http://tw.wingwit.com/Article/program/PHP/201311/21326.html