V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lution
V2EX  ›  搜索引擎优化

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

  •  
  •   lution · 2015-10-13 11:52:03 +08:00 · 2190 次点击
    这是一个创建于 3089 天前的主题,其中的信息可能已经有所发展或是发生改变。
    前两天在买了 gogetssl 家的三年 SSL ,感觉不错,于是把自己的博客换上了 HTTPS ,服务器上用的是 Nginx ,已经对所有 HTTP 请求做了 301 重定向到 HTTPS 上。听说 Google 会对 HTTPS 的页面给予更高的权重,所以希望 Google 中的收录结果尽快更新成 HTTPS 的。我对 SEO 不是很了解,不知道需不需要我做些什么呢?

    我已经在 Google Search Console 上面提交了 HTTPS 和 HTTP 两份 sitemap ,不过好像这个只是让收录得更完整?现在我分别用 site:xxx.comsite:https://xxx.com 都看到一模一样的收录,区别只是有 HTTP 和 HTTPS ,而用关键字检索我站点返回的连接大多数是 HTTP 的,难道要用 robots.txt 来禁止 HTTP 的爬取吗?
    2 条回复    2015-10-13 12:26:58 +08:00
    Livid
        1
    Livid  
    MOD
       2015-10-13 11:52:50 +08:00   ❤️ 1
    试试在 Canonical URL 那里用 https
    lution
        2
    lution  
    OP
       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 跳转已经可以了,应该过一段时间就会看到效果吧。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2002 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 16:19 · PVG 00:19 · LAX 09:19 · JFK 12:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.