[英]Rewrite the URL of a deleted post in Wordpress
In a Wordpress blog, a post with a lot of visits got deleted. 在Wordpress博客中,删除了很多访问量的帖子。 I can write a new one but I want to reuse the old URL, because people saved the link.
我可以编写一个新的URL,但是我想重用旧的URL,因为人们保存了链接。
However the permalinks are based on ID+name_of_post
and I can't create a new post with the same ID
. 但是,永久链接基于
ID+name_of_post
并且我无法使用相同的ID
创建新的帖子。 I also can't make a redirection because Wordpress considers my old post non-existent. 我也无法进行重定向,因为Wordpress认为我的旧帖子不存在。
And of course, my post isn't in the trash. 当然,我的帖子也没有浪费。
How to do this? 这个怎么做?
您必须使用ID为ID的post的旧值对数据库进行更新查询,或者如果您有db,可以使用db的备份。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.