muh*_*huk 12 sitemap optimization pagination
我有列表页面,在网址上采用页面参数,如下所示:
http://www.domain.com/foo/bar/?page=7
Run Code Online (Sandbox Code Playgroud)
我应该只包含没有参数的URL,还是应该列出我的sitemap.xml中的所有页面?
分页内容是列表,就像索引一样.因此,他们的内容也(详细地)在详细页面中找到.但这些分页的是获取详细信息页面的唯一方法.
没有!:您应该向分页的网站添加元标记。这可以帮助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”的分页