【发布时间】:2019-04-01 15:09:28
【问题描述】:
【问题讨论】:
-
清理您的 .htaccess 文件并将永久链接设置为帖子类型
【问题讨论】:
请前往:
Wordpress 管理 -> 设置 -> 固定链接
并将“/%category%/%postname%/”设置为自定义结构。
【讨论】:
如果您使用的是 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>
【讨论】: