站点上了 HTTPS,如果更新让 Google 的搜索结果也转到 HTTPS 上?

2015-10-13 11:52:03 +08:00
 lution
前两天在买了 gogetssl 家的三年 SSL ,感觉不错,于是把自己的博客换上了 HTTPS ,服务器上用的是 Nginx ,已经对所有 HTTP 请求做了 301 重定向到 HTTPS 上。听说 Google 会对 HTTPS 的页面给予更高的权重,所以希望 Google 中的收录结果尽快更新成 HTTPS 的。我对 SEO 不是很了解,不知道需不需要我做些什么呢?

我已经在 Google Search Console 上面提交了 HTTPS 和 HTTP 两份 sitemap ,不过好像这个只是让收录得更完整?现在我分别用 site:xxx.com 和 site:https://xxx.com 都看到一模一样的收录,区别只是有 HTTP 和 HTTPS ,而用关键字检索我站点返回的连接大多数是 HTTP 的,难道要用 robots.txt 来禁止 HTTP 的爬取吗?
2217 次点击
所在节点    搜索引擎优化
2 条回复
Livid
2015-10-13 11:52:50 +08:00
试试在 Canonical URL 那里用 https
lution
2015-10-13 12:26:58 +08:00
@Livid 非常感谢,在 [Use canonical URLs]( https://support.google.com/webmasters/answer/139066?hl=en) 页面找到官方答案了。

Although our systems prefer HTTPS pages over HTTP pages by default, you can ensure this behavior by taking any of the following actions:

Add 301 or 302 redirects from the HTTP page to the HTTPS page.
Add a rel="canonical" link from the HTTP page to the HTTPS page.
Implement HSTS.

看起来我现在使用的 301 跳转已经可以了,应该过一段时间就会看到效果吧。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/227620

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX