how can i apply pagination-with-relnext-and-relprev to pagination in the header?
i want to add
<link rel="next" href="http://www.example.com/article?story=abc&page=3" />
<link rel="prev" href="http://www.example.com/article?story=abc&page=1" />
on pagination page 2, and so on. with an exception for the first and last page. last page should only contain the rel="prev" and the first page should only contain rel="next"
this would not be too hard to get in the body within the current
as i see in many other solutions, but i want it in the header as stated in the article above by Google.
anyone has an idea how to approach this problem?