问题原文
原帖链接 · user2240778 · CC BY-SA 3.0
I'm moving from HTTP to HTTPS for my entire site. The site is currently added to Google Search Console (formerly Google Webmaster Tools) as www.example.com and all the pages are indexed without using SSL.
How do I go about moving to the new HTTPS URLs on Google Search Console?
Do I just submit an updated sitemap which has the HTTPS URLs or do I add a new site as
https://www.example.comand submit the sitemap with HTTPS URLs? All current URLs are set to redirect to their HTTPS counterparts.Do I add multiple properties to Google Search Console?
社区高分解答
原帖链接 · Flimm · CC BY-SA 4.0
Update (February 27, 2019):
Google have announced domain-wide data in Search Console, which combines all subdomains and protocols of a domain, http, https, www, and non-www.
Old answer:
Google Webmaster Tools treats HTTP and HTTPS as separate sites and you cannot inform Google using Google Search Console, that you moved from HTTP to HTTPS since the address move tool does not support protocol changes
You can though add the HTTPS site versions. When adding a site, simply type the URL including the https:// prefix. You will then have two sites in Google Webmaster Tools.
This fits with the general principle that http://www.example.com is considered a different URL from https://www.example.com and may validly serve different content, Google is OK with that. In practise, most websites set up a redirect, but Google Webmaster Tools is designed to work in either case, just add both sites.
Similarly, you should add the www and non-www versions of your site, so in the end, you should have four sites:
http://www.example.comhttps://www.example.comhttp://example.comhttps://example.com
Until 2019, you could set whether www or non-www is preferred, but I'm not aware of a similar setting for HTTP vs HTTPS.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
