My Computer · 2021/09/15 0

IIS8.5宝塔wordpress分类category标签tag中文固定链接404无法打开解决办法

分类页码链接显示404,需要修改宝塔面板自带的wordpress伪静态规则,删除原有category、tag规则:

<?xml version="1.0" ?>
<rules>
	<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>

中文文章名称链接、中文tag链接无法显示,搜索IIS Chinese Tag Permalink安装即可解决。