IIS 7.5 下WordPress的伪静态规则

2016-09-11 3,457 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 上保护 SSH 服务器连接的 8 种方法
sudo rm -rf,为什么如此危险
Linux 命令 su 和 sudo 的区别
Linux 系统下查找文件命令总结
建议收藏!Linux 资料大全!!
这 4 个代码编辑器,或将挑战 VS Code 霸主地位

发布评论