【待反馈】wordpress的iis伪静态规则有问题
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:7.8.0系统版本:Windows Server 2022 Datacenter
问题描述:注意:使用的IIS系统wordpress网站系统,使用win宝塔面板默认的wordpress伪静态规则会导致wordpress后台里进入分类(进入后台修改调整分类)会404报错更改为thinkphp的伪静态规则后访问分类设置就没问题,感觉wordpress与宝塔的windows面板兼容性很差啊。
相关截图(日志、错误):
您好,您修改下面的伪静态保存然后重新访问试试是否正常呢
<?xml version="1.0" ?>
<rules>
<rule name="category_rewrite">
<match url="category/?(.*)"/>
<conditions logicalGrouping="MatchAll" trackAllCaptures="false"/>
<action appendQueryString="false" logRewrittenUrl="false" type="Rewrite" url="/index.php?category_name={R:1}"/>
</rule>
<rule name="Main Rule_rewrite" stopProcessing="true">
<match url=".*"/>
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php/{R:0}"/>
</rule>
<rule name="wordpress_rewrite" patternSyntax="Wildcard">
<match url="*"/>
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<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> 谢花郎 发表于 2023-7-10 09:33
您好,您修改下面的伪静态保存然后重新访问试试是否正常呢
测试正常了 hxhost 发表于 2023-7-27 15:52
测试正常了
是使用上面的伪静态规则后正常了吗?
页:
[1]