问题原文
原帖链接 · freehat12 · CC BY-SA 3.0
Running HTTP and HTTPS versions of the site side-by-side.
HTTP is canonical right now. Goal is to change that to HTTPS.
Created a new site in Search Console and submitted a new sitemap 4 days ago.
HTTPS sitemap is identical to HTTP sitemap (other than protocol). HTTPS sitemap has lastmods showing the date the pages were updated.
Search Console shows all 1M+ URLs in the new sitemap as "Submitted" but it shows "-" for Indexed.
Should we:
Wait until Google has indexed the new sitemap before 301 redirecting and changing canonicals?
Or 301 redirect and change canonicals now? Maybe Google hasn't indexed the new sitemap because they know it is not canonical?
lastmod: Leave as-is, remove, or set to current date?
Chrome shows HTTP warnings soon, so we're eager to move, but don't want to lose Google juice.
社区高分解答
原帖链接 · Stephen Ostermiller · CC BY-SA 3.0
Google will never index HTTPS while the canonicals point to HTTP. I switched my largest site over to HTTPS using the following protocol:
- Enabled HTTPS for the site without switching canonicals for about two years. During this time period Google sent all traffic to HTTP.
- Switched the canonical version to HTTPS. It has been running that way for about 8 months now. At this point Google is indexing about 90% of the URLS on HTTPS. The number that indexed on HTTPS appears to be moving over rather slowly. I thought Google would have it done within a month, however it has been a much longer process. I was invited to the beta of the new Google Search Console report for indexing. Interestingly it shows that Google is not honoring my canonical on some percentage of URLs. It has crawled the URLs, but has decided that the old HTTP URL is more appropriate! Every month Google appears to switch over more and more of the URLs, but it is unclear when this process will be complete.
- After about 9 months, I redirected HTTP to HTTPS. I was hoping to wait until Google indexed everything on HTTPS, but it is took so long I made the switch while Google was still indexing a small percentage of pages with less traffic on HTTP. At that point, I didn't notice any effect in my overall traffic when implementing the redirect.
We've had enough reports here of ranking problems with HTTPS switches that I wanted to take this gradual approach with this site because it gets tens of millions of visits per month from Google. The good news is that I haven't seen any ranking problems or traffic dips from Google having switched the canonicals but not redirecting.
I believe that you could skip my initial step of enabling HTTPS but not switching the canonicals without having any problems.
Here are the graphs from the index report of the Google Search Console beta showing URLs not indexed on HTTPS. Google actually has two reasons for this:
- "Alternate page with proper canonical tag" which seems to indicate that Googlebot hasn't re-crawled the corresponding page on HTTP yet.
- "Google chose different canonical than user" which seems to indicate that Google is choosing not to honor the canonical tag and is actually preferring HTTP URLs in some cases.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
