Seo 每页2个版本

Seo 每页2个版本,seo,jekyll,hosting,liquid,Seo,Jekyll,Hosting,Liquid,我用Jekyll创建了我的博客。有人告诉我,我的网站正在为一些网页建立3个URL的索引,这些网页将被归类为谷歌的重复内容。我注意到我可以访问: ,以及每个斜杠后的index.html扩展名 我不知道如何解决这个问题。我的配置文件中有以下内容: permalink: /:categories/:title/ 在模板中,我有以下内容: <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_ur

我用Jekyll创建了我的博客。有人告诉我,我的网站正在为一些网页建立3个URL的索引,这些网页将被归类为谷歌的重复内容。我注意到我可以访问:

,以及每个斜杠后的index.html扩展名

我不知道如何解决这个问题。我的配置文件中有以下内容:

permalink: /:categories/:title/
在模板中,我有以下内容:

<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">

我还需要做什么吗?同样的情况也会出现在博客的主页上,有斜杠/blog/和/blog/和没有斜杠

任何帮助都会很好

谢谢
Chris

规范是好的,应该遵守,但是你也应该用301重定向将一个重定向到另一个

看起来你很好,不过:

curl -I "https://villaagogo.com/guide/universal-orlando-resort/halloween-horror-nights-2017"
    HTTP/1.1 301 Moved Permanently
    Content-Length: 206
    Content-Type: text/html; charset=UTF-8
    Location: https://villaagogo.com/guide/universal-orlando-resort/halloween-horror-nights-2017/
    Server: Microsoft-IIS/7.5
    X-Powered-By: ASP.NET
    Date: Mon, 28 Aug 2017 23:41:18 GMT