wordpress程序在iis7.5环境下的伪静态规则。 先创建一个web.config文件,然后编辑把下面的代码复制进去保存。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite> <rules>
<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> </system.webServer>
</configuration>
最后上传到您的空间根目录下,此规则只支持在iis7.0,iis7.5的环境下使用
同时也要您的空间支持伪静态,如果不支持上传了也是使用不了的。如果是云服务器的需要安装url重写组件!
本教程由树叶云原创出品 官方网址http://IDC.NET 欢迎大家多多关注。
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/155269.html<