How to hint search engines about pagination?

•By Romain Dorgueil

Search engines are kind of «smart», but they’re still computer bots and you know your website better than them so you can help them in the tedious task of indexing your website.

Short answer

You can use rel links to provide a machine readable way of knowing the previous page, the next page or both:

<link rel="prev" href="https://romain.dorgueil.net/links/2/"/>
<link rel="next" href="https://romain.dorgueil.net/links/4/"/>

It is possible to mix prev and/or next rel-ations with a rel="canonical" link.

You can use absolute or relative links in those links.

Want to work together? Get in touch.

Related

Keyboard shortcuts

/Open search
CtrlKOpen search (Cmd+K on macOS)
?Show this cheat sheet
Ctrl/Show this cheat sheet (Cmd+/ on macOS)
EscClose search or this cheat sheet

Turns off the single-key shortcuts (/, ?). Ctrl/Cmd+K and Ctrl/Cmd+/ stay.