php版本
增加以下内容
extension=php_pdo.dll
extension=php_pdo_mysql.dll
fastcgi.impersonate = 1
cgi.fix_pathinfo=1
cgi.force_redirect = 0
一个是支持开启mysql拓展,一个是开启伪静态支持
安装伪静态工具
www.iis.net/download/URLRewrite
站点配置文件web.conf
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="cnUrl" stopProcessing="true">
<match url="^(tag|category)/(.*)$" />
<action type="Rewrite" url="cnurl.php" />
</rule>
<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.php" />
</rule>
</rules>
</rewrite>
<defaultDocument enabled="true" />
</system.webServer>
</configuration>
网友评论