iis 7.5 wordpress 完美伪静态规则如下
---------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="wordpress2.7" stopProcessing="true">
<match url=".*" />
<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" />
</rule>
<rule name="chinese tag" stopProcessing="true">
<match url="/tag/(.*)" />
<conditions logicalGrouping="MatchAll" />
<action type="Rewrite" url="/index\.php\?tag={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
--------------------------------------------------------------------------------------------------------------------------------------
只需要把上面两条黑线中间部分代码复制放在文本文件中,然后另存为web.config放到根目录下即可,不会保存的直接下载
云立方网产品导航: 动态拨号vps 服务器租用 拨号服务器 |
下一篇:虚拟主机备份数据说明