答案 0 :(得分:0)
请转到:
Wordpress 管理员->设置->永久链接
并将“ /%category%/%postname%/”设置为“自定义结构”。
答案 1 :(得分:0)
如果您使用的是Linux虚拟主机,请转至/wp-admin/options-permalink.php,然后选择“帖子名称”。
如果您使用Windows虚拟主机,则
If you are using linux web hosting, go here /wp-admin/options-permalink.php and select 'post name'.
If you are using windows web hosting, create a web.config file and paste below codes.
<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>