最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

customization - Moving WP install from local to live, what about wp_posts GUID?

programmeradmin0浏览0评论

Done this before and i am still wondering what to do with the wp_posts => guid content, which has reference to http://localhost

But at wordpress documentation it clearly states:

Never, ever, change the contents of the GUID column, under any circumstances.

But as i understand it is just to unique identify your posts globally. But as more people would have http://localhost in their guid.

So can i safely replace http://localhost with ?

regards

Done this before and i am still wondering what to do with the wp_posts => guid content, which has reference to http://localhost

But at wordpress documentation it clearly states:

Never, ever, change the contents of the GUID column, under any circumstances.

But as i understand it is just to unique identify your posts globally. But as more people would have http://localhost in their guid.

So can i safely replace http://localhost with http://example ?

regards

Share Improve this question edited Nov 19, 2020 at 11:12 kanlukasz 5448 silver badges24 bronze badges asked Mar 4, 2012 at 17:35 alexalex 1,1123 gold badges17 silver badges39 bronze badges 2
  • here is the answer to change guid from localhost to live domain -> wordpress.stackexchange/a/238086/200021 – Nikhil Chauhan Commented Jan 7, 2021 at 16:21
  • this worked for me sudo nvim ~/backup_wp.sql :%s/[old_domain]/[new_domain]/g – bl3ssedc0de Commented Dec 1, 2022 at 21:05
Add a comment  | 

1 Answer 1

Reset to default 6

"GUID" stands for "Globally Unique Identifier" mainly used by feeds to tell if that specific post was shown on the feed before or not, even if you change domains.

When developing on local host and the moving to live (+1 just for that BTW) and no feed reader/burner has read your feeds and only if that is the case it's OK to change it and start fresh on your new live host.

发布评论

评论列表(0)

  1. 暂无评论