这里提供一个可以使用的伪静态和配置文件信息:
1.先在网站设置-网站目录里面勾选上:锁定配置文件(IIS 部署 Wordpress 必选)
2.先改配置文件:
<?xml version="1.0" ?>
<configuration>
<location allowOverride="false" inheritInChildApplications="false" path=".">
<system.webServer>
<rewrite>
<rules configSource="web_config\rewrite.config"></rules>
</rewrite>
<defaultDocument configSource="web_config\default.config"></defaultDocument>
<httpErrors configSource="web_config\httpErrors.config"></httpErrors>
<handlers configSource="web_config\php.config"></handlers>
</system.webServer>
</location>
</configuration>
3.改伪静态规则:
<?xml version="1.0" ?>
<rules>
<rule enabled="true" name="WordPress: https://5c.ltd(这里是你的域名)_rewrite" 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>