I'm trying to improve SEO on a platform i'm working with, and was advised to add
rel="prev" links to my pages to make it clearer to google which URLS are paginated.
My question to you is, does google look anywhere except the
head element for them?
Can i add them to the next page buttons themselves? Will that still work?
<a href='page.php?p=2' rel="next"> <a href='page.php?p=3' rel="next">
Or Maybe can i add them as a
link element, but any random place in the page outside the head?
<link rel="prev" href="page.php?p=2"> <link rel="next" href="page.php?p=3">
Or does that type of link explicitly require it being present in the
head and only in the
Accoring to Google WebMaster Central it's not required to be outside of the head, but that seems kind of ambiguous to me.
rel=”next” and rel=”prev” only need to be declared within the section, not within the document .
Does anyone happen to know what the specifics of that tag are and whether it'll index it properly if i put the link tags outside the head element?
(for anyone wondering why on earth i don't just put the rel tag in the head, it's because it needs to be dynamic and i couldn't find a way to dynamically insert php into the head element with our platform)