lution

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

  •  
  •   lution · Oct 13, 2015 · 2890 views
    This topic created in 3904 days ago, the information mentioned may be changed or developed.
    前两天在买了 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 replies    2015-10-13 12:26:58 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       Oct 13, 2015   ❤️ 1
    试试在 Canonical URL 那里用 https
    lution
        2
    lution  
    OP
       Oct 13, 2015
    @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 跳转已经可以了,应该过一段时间就会看到效果吧。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2477 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 11:14 · PVG 19:14 · LAX 04:14 · JFK 07:14
    ♥ Do have faith in what you're doing.