【问题标题】:Site Performance: rel=canonical vs redirect 301网站性能:rel=canonical vs redirect 301
【发布时间】:2013-04-10 04:28:10
【问题描述】:

来自this page on the blog of Matt Cutts,他说如果您不能使用 301 重定向,rel=canonical 应该是次要选择。使用 301 重定向而不是 rel=canonical 是否存在任何性能问题?

【问题讨论】:

    标签: redirect seo canonical-link canonicalization


    【解决方案1】:

    根据我的经验,性能差异可以忽略不计。 301 重定向的实现涉及更多步骤,因此rel=canonical 的性能可能会稍好一些。额外的步骤通常执行得非常快,并且不会增加任何明显的延迟或对服务器资源造成压力。

    rel=canonical

    1. 用户请求 /non-canonical.html
    2. 服务器查找规范 URL:/canonical.html
    3. 服务器构建一个包含规范标签的页面并将其发送给用户

    301 重定向

    1. 用户请求 /non-canonical.html
    2. 服务器查找规范 URL:/canonical.html
    3. 服务器向规范 URL 发出 301 重定向。
    4. 用户的浏览器自动向 /canonical.html 发出第二次请求
    5. 服务器发现此请求是针对规范 URL 的。
    6. 服务器构建一个页面并将其发送给用户。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-09
      • 2013-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-10
      相关资源
      最近更新 更多