为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:IIS 8.5,PHP7.4,安装了wordpress(更新到最新6.6.2),tags页面的中文标签,访问全部是404。当前用的伪静态规则是宝塔默认的规则:- <rule name="category">
- <match url="category/?(.*)" />
- <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
- <action type="Rewrite" url="/index.php?category_name={R:1}" appendQueryString="false" logRewrittenUrl="false" />
- </rule>
- <rule name="tags">
- <match url="/tag/?(.*)"/>
- <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
- <action type="Rewrite" url="index.php?tag={R:1}" />
- </rule>
- <rule name="Main Rule" 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" 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>
复制代码
相关截图(日志、错误): 这个tags页面的中文标签,全部是404: https://www.tehuipai.com/tags/
|
|