User Tools

Site Tools


seo:pagination

Table of Contents

Pagination

En cada página del listado dentro de la paginación, los links han de contener los mismos parámetros para ser consideradas páginas de una cadena.

www.site.com/products?page=1
www.site.com/products?page=2
www.site.com/products?page=3

El enlace hacia la siguiente página ha de llevar el atributo rel=”next” y el que va hacia la anterior rel=”prev”.

The pagination attributes would be as follows:

Page 1:

<link rel=”next” href=”http://www.site.com/products?page=2″>

Page 2:

<link rel=”prev” href=”http://www.site.com/products?page=1″>
 
<link rel=”next” href=”http://www.site.com/products?page=3″>

Page 3:

<link rel=”prev” href=”http:// site.com/products?page=2″>

Si hay más parámetros, TODAS las páginas los tendrán que llevar:

<!-- Links no válidos -->
www.site.com/products?page=1
www.site.com/products?page=2&referrer=twitter
www.site.com/products?page=3
 
<!-- Links válidos -->
www.site.com/products?page=2&referrer=twitter
 
The pagination values should be (dynamically inserted as):
 
<link rel=”prev” href=”http:// www.site.com/products?page=1&referrer=twitter”>
 
<link rel=”next” href=”http://www.site.com/products?page=3&referrer=twitter”>

Canonical

Las páginas no han de llevar el canonical hacia la primera página, ya que entonces todos los indexadores solo guardarían dicha página.

Para hacero bien debería de hacerse:

www.site.com/products?page=2&referrer=twitter
 
Would end up with the following markup:
 
<link rel=”canonical” href=”http://www. site.com/products?page=2″>
 
<link rel=”prev” href=”http://www. site.com/products?page=1&referrer=twitter”>
 
<link rel=”next” href=”http:// www.site.com/products?page=3&referrer=twitter”>
seo/pagination.txt · Last modified: 2012/05/07 22:30 by nejo