我应该在我的sitemap.xml中包含分页结果吗?

muh*_*huk 12 sitemap optimization pagination

我有列表页面,在网址上采用页面参数,如下所示:

http://www.domain.com/foo/bar/?page=7
Run Code Online (Sandbox Code Playgroud)

我应该只包含没有参数的URL,还是应该列出我的sitemap.xml中的所有页面?

编辑

分页内容是列表,就像索引一样.因此,他们的内容也(详细地)在详细页面中找到.但这些分页的是获取详细信息页面的唯一方法.

Tom*_*ght 7

我真的很想找到你这个可靠的来源,但我不能.这意味着你必须用我的直觉来做:

如果文章仅以其分页形式存在,并且您希望将它们编入索引作为单独的页面,则将它们全部列出.他们都会有不同的内容,所以你不会因为重复而受到惩罚.

我发现了一个例外的细节; 包括第1页两次.基本上你需要选择第一页是/ foo/bar /?page = 1还是只是/ foo/bar /,然后从你不想使用的版本进行301重定向.

希望这会有所帮助(甚至只是一点点).

汤姆


fee*_*0de 6

没有!:您应该向分页的网站添加元标记。这可以帮助Google了解您的分页系统。

例:

第1页上,您将添加到<head>

<link rel="next" href="http://www.example.com/article?story=abc&page=2" />
Run Code Online (Sandbox Code Playgroud)

第2页上,您将添加:

<link rel="prev" href="http://www.example.com/article?story=abc&page=1" />
<link rel="next" href="http://www.example.com/article?story=abc&page=3" />
Run Code Online (Sandbox Code Playgroud)

第3页上,您将添加:

<link rel="prev" href="http://www.example.com/article?story=abc&page=2" />
<link rel="next" href="http://www.example.com/article?story=abc&page=4" />
Run Code Online (Sandbox Code Playgroud)

第4页上,您将添加:

<link rel="prev" href="http://www.example.com/article?story=abc&page=3" />
Run Code Online (Sandbox Code Playgroud)

请参阅此文档:使用rel =“ next”和rel =“ prev”的分页

  • 尽管有用,但这并不能回答问题。即使添加了meta标签,问题仍然存在。 (2认同)