简体   繁体   中英

Rewrite the URL of a deleted post in Wordpress

In a Wordpress blog, a post with a lot of visits got deleted. I can write a new one but I want to reuse the old URL, because people saved the link.

However the permalinks are based on ID+name_of_post and I can't create a new post with the same ID . I also can't make a redirection because Wordpress considers my old post non-existent.

And of course, my post isn't in the trash.

How to do this?

您必须使用ID为ID的post的旧值对数据库进行更新查询,或者如果您有db,可以使用db的备份。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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