【问题标题】:How to redirect existing post url after changing slug in Wordpress如何在 Wordpress 中更改 slug 后重定向现有的帖子 url
【发布时间】:2021-03-05 11:11:32
【问题描述】:

我的 WordPress 网站安装在根目录中 - 例如:https://surfends.com/ 但现在我的网站已安装到新的 slug“博客”。

现在看起来像:https://surfends.com/blog

我必须用新的 slug 将我之前的帖子重定向到:

例如:https://surfends.com/big-submarines/ ==> https://surfends.com/blog/big-submarines/

我尝试过: RewriteRule ^big-submarines/$ https://surfends.com/blog/big-submarines/? [R=301,NE,NC,L]

谁能帮忙?谢谢

【问题讨论】:

    标签: wordpress url redirect


    【解决方案1】:

    我建议最简单的解决方案是使用像 301 Redirects 这样的插件。

    https://wordpress.org/plugins/eps-301-redirects/

    【讨论】:

    猜你喜欢
    • 2017-03-30
    • 2016-09-04
    • 1970-01-01
    • 2018-11-15
    • 2017-01-31
    • 2020-07-04
    • 2017-02-28
    • 2019-03-15
    • 2018-05-30
    相关资源
    最近更新 更多