删除旧的固定链接? [英] Remove Old Permalinks?
问题描述
我有一个 Wordpress 网站.我已经多次更改了我的永久链接.我使用的永久链接的所有过去版本仍然有效.如果我将它们输入到 URL 栏中,我将被带到该页面,而 URL 不会更改/重定向到新的/当前的永久链接.
I have a Wordpress website. I have changed my permalinks several times. All past versions of the permalinks I used are still working. If I type them into the URL bar, I am taken to the page WITHOUT the URL changing/redirecting to the new/current permalink.
为什么旧的永久链接没有重定向到新的永久链接?
Why aren't the old permalinks redirecting to the new one?
这会导致 Google 读取重复内容出现问题.
This is causing issues with Google reading duplicate content.
Example: .com/lightbulb .com/shop/lightbulb
第二个 URL 是旧的,但在我输入时仍然有效.
The second URL is old, but still works when I type it in.
不应该重定向到新的吗?
如何从 Google 找到的旧永久链接中删除?
Shouldn't it redirect to the new one?
How can I remove old permalinks from being found by Google?.
提前致谢
推荐答案
我认为旧的永久链接与 _wp_old_slug 的
meta_key
一起存储在表 postmeta
中
I think the old permalinks is stored in the table postmeta
with the meta_key
of _wp_old_slug
如果你想清除所有旧的 slug,你可以使用这个:
If you wanted to clear all of the old slugs you could use this:
DELETE FROM wp_postmeta WHERE meta_key = '_wp_old_slug';
这篇关于删除旧的固定链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!