IIS 7.5 下WordPress的伪静态规则

2016-09-11 3,252 0

这是适用于IIS7及以上的Wordpress的伪静态规则,保存成web.config文件,放到网站根目录即可。

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="WordPress" stopProcessing="true">
<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" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

2016091101

相关文章

颜值超高的七款Linux操作系统分享
Windows系统下创建带点文件夹和文件
8 种最坑SQL语法!
编辑Hosts文件的方法
禁用Chrome的自动更新
Linux中是谁占用了我的端口

发布评论