大网数据广告活动
网站运营与故障问答

Moving from HTTP to HTTPS in Google Search Console

· 52CE 我爱测

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 movin…

问题原文

原帖链接 · 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?

  1. Do I just submit an updated sitemap which has the HTTPS URLs or do I add a new site as https://www.example.com and submit the sitemap with HTTPS URLs? All current URLs are set to redirect to their HTTPS counterparts.

  2. 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.com
  • https://www.example.com
  • http://example.com
  • https://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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2014-08-24)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。