IIS 7.5 下WordPress的伪静态规则

2016-09-11 3,522 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

相关文章

比VMware更加轻量级的一款虚拟机!
你觉得Linux系统需要安装杀毒软件吗?
了解文件大小:bit、byte、KB、MB、GB、TB、PB、EB、ZB、YB……
在 Linux 中查看 IP 地址
Linux 系统内 find 命令的使用方法
详解:Linux网络管理基础知识

发布评论