我已经知道发生了什么事。Wordpress不存储以前创建的永久链接。它所做的就是通过查看帖子名称猜出你想要的链接。
考虑:
https://wordpress.com/blog/2021/12/16/new-year-new-success-with-bloganuary/
wget https://wordpress.com/blog/2021/12/16/new-year-new-success-with-bloganuary/
--2021-12-31 00:09:51-- https://wordpress.com/blog/2021/12/16/new-year-new-success-with-bloganuary/
Resolving wordpress.com (wordpress.com)... 192.0.78.17, 192.0.78.9
Connecting to wordpress.com (wordpress.com)|192.0.78.17|:443... connected.
HTTP request sent, awaiting response... 200 OK
所有这些都是有意义的,但现在:
wget https://wordpress.com/blog/new-year-new-success-with-bloganuary/
--2021-12-31 00:10:19-- https://wordpress.com/blog/new-year-new-success-with-bloganuary/
Resolving wordpress.com (wordpress.com)... 192.0.78.17, 192.0.78.9
Connecting to wordpress.com (wordpress.com)|192.0.78.17|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://wordpress.com/blog/2021/12/16/new-year-new-success-with-bloganuary/ [following]
或:
wget https://wordpress.com/blog/new-year-new-success/
--2021-12-31 00:10:54-- https://wordpress.com/blog/new-year-new-success/
Resolving wordpress.com (wordpress.com)... 192.0.78.17, 192.0.78.9
Connecting to wordpress.com (wordpress.com)|192.0.78.17|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://wordpress.com/blog/2021/12/16/new-year-new-success-with-bloganuary/ [following]
--2021-12-31 00:10:55-- https://wordpress.com/blog/2021/12/16/new-year-new-success-with-bloganuary/
Reusing existing connection to wordpress.com:443.
它甚至只适用于一封信,尽管这会分解为不同的(旧的)帖子
wget https://wordpress.com/blog/n
--2021-12-31 00:11:41-- https://wordpress.com/blog/n
Resolving wordpress.com (wordpress.com)... 192.0.78.9, 192.0.78.17
Connecting to wordpress.com (wordpress.com)|192.0.78.9|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://wordpress.com/blog/2013/12/03/nablopomo-2013/ [following]
--2021-12-31 00:11:41-- https://wordpress.com/blog/2013/12/03/nablopomo-2013/
Reusing existing connection to wordpress.com:443.
这就是为什么我在数据库中找不到它们。他们不在那里。解决方案是简单地将旧URL从归档中拉出。为我保存它们的组织。