简体   繁体   English

自动301重定向到Wordpress中的父类别

[英]automatic 301 redirect to parent category in wordpress

We are scheduling posts to be archived on a monthly basis. 我们计划每月发布一次帖子。 However, this is causing a large amount of 404 errors on the website and obvious SEO issues. 但是,这导致网站上出现大量404错误和明显的SEO问题。

All our posts sit inside a category. 我们所有的帖子都属于一个类别。 So my question is, how do we create an automated 301 redirect when a post is archived (unpublished) to it's parent category? 所以我的问题是,当帖子被存档(未发布)到其父类别时,我们如何创建自动301重定向?

Thanks in advance. 提前致谢。

There's a plugin called Auto Redirect 404 in 301 for Trashed Posts which I think is what you're looking for. 在301中,有一个名为“ 自动重定向404”的插件用于“发帖子” ,我认为这是您想要的。 It will automatically redirect requests for deleted posts. 它将自动重定向对已删除帖子的请求。

This plugin allows you to automatically produce 301 redirects to the home page or another URL for deleted posts and taxonomies to avoid 404 errors. 此插件可让您自动生成301重定向到主页或其他URL的已删除帖子和分类法,以避免404错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM