Rel=“next” and rel=“prev” on category pages and galleries
-
Hi there,
I am running an WordPress blog and i was looking a couple of days on the source code of the categories. From a SEO point of view would make sense to include into the header of the categories the rel=“next” and rel=“prev” tags ?
Same question would be for the image galleries . Should i add the rel=“next” and rel=“prev” tags on the image galleries ? So for example if i upload 10 images to a gallery, the user will check the post and see the gallery. It will click on an image and will redirected on the attachment page of that displays that image > from where he can click next to see the next image or prev for the previous image. Therefore should i add the rel=“next” and rel=“prev” tags here too ?
Many thanks
-
hi Brady,
No - there are different pages like this
http://www......../bmw/gallery/img1
http://www......../bmw/gallery/img2
http://www......../bmw/gallery/img3
... -
Yes, the canonical included with the rel next and prev is fine.
I'm just not sure the gallery of images is an appropriate use of real next/prev. Are all these images on one page? If so, I'm not sure those html elements are necessary.
-
Thank you for the reply.
Regarding the category: Yes it has multiple blog posts and I already implemented in the correct way according to what you are saying.
Regarding the gallery: there are multiple pages of images (pagination) within the gallery. What is chaning in general is only the image but the text will remain almost the same everywhere.
This is the way i implemented the rel next / prev and canonical:
rel prev for http://............ page_image1.html
rel next for http://............ page_image3.html rel canonical for http://............ page_image2.html (the actual page).Is that correct ? Or should i remove the rel canonical and let only the rel prev and next ?
This question camed in my mind after reading a post on searchengine land that says:
"You can use these attributes for article pagination, product lists, and any other types of pagination your site might have. The first page of the series has only a rel=”next” attribute and the last page of the series has only a rel=”prev” attribute, and all other pages have both. You can still use the rel=”canonical” attribute on all pages in conjunction." [link to the article]
-
While I'm just going off of your description, you shouldn't need rel="next" and rel="prev" pointing from one category page to another. However, if you're talking about one category that has multiple pages of blog posts, for instance, then yes, I'd definitely recommend adding those tags to help search engines understand the relationship between that pagination. Just make sure they're implemented in the .
Here's Google's webmaster central blog post on the matter: http://googlewebmastercentral.blogspot.com/2011/09/pagination-with-relnext-and-relprev.html. I'd read, memorize, and then bookmark.
Again, I'm not totally sure what you mean by the description of the image gallery. However, if there are multiple pages of images (pagination) within the gallery, then yes, add the rel="next" and "prev" tags there, as well. If there are lots of images, your best bet might be creating a "View All" page you could combine that as the canonical URL along with your rel="next" and "prev." That may be excessive given your website though.
I don't think you need the link element tags pointing from one image to another, that's not really how the rel="next"/"prev" elements were meant to work. But that should get you jump started with your understanding! Let me know if you have any other questions.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Validated pages on GSC displays 5x more pages than when performing site:domain.com?
Hi mozzers, When checking the coverage report on GSC I am seeing over 649,000 valid pages https://cl.ly/ae46ec25f494 but when performing site:domain.com I am only seeing 130,000 pages. Which one is more the source of truth especially I have checked some of these "valid" pages and noticed they're not even indexed?
Intermediate & Advanced SEO | | Ty19860 -
Client would like to 301 redirect the homepage to a category page
Hello MOZ Community!!! I would like your expert opinions on a scenario, please! My client is an ecommerce company, and currently has one of its category pages outranking its homepage for a few key phrases. The homepage, however, has a better conversion rate. So, the client is asking that we make the homepage the category URL, so http://www.theirsite.com/blue-clothes. The existing homepage URL - http://www.theirsite.com - would 301 REDIRECT to the category page - which would render the current version of the homepage. Therefore, there would be nothing, ZERO content, on the MAIN URL: http://www.theirsite.com Has anyone ever done this before? What are the pros and the cons of this practice? Here is my same client, for reference: https://moz.com/community/q/issue-with-category-ranking-on-page-1-vs-homepage-ranking-on-page-2
Intermediate & Advanced SEO | | accpar0 -
Our client's web property recently switched over to secure pages (https) however there non secure pages (http) are still being indexed in Google. Should we request in GWMT to have the non secure pages deindexed?
Our client recently switched over to https via new SSL. They have also implemented rel canonicals for most of their internal webpages (that point to the https). However many of their non secure webpages are still being indexed by Google. We have access to their GWMT for both the secure and non secure pages.
Intermediate & Advanced SEO | | RosemaryB
Should we just let Google figure out what to do with the non secure pages? We would like to setup 301 redirects from the old non secure pages to the new secure pages, but were not sure if this is going to happen. We thought about requesting in GWMT for Google to remove the non secure pages. However we felt this was pretty drastic. Any recommendations would be much appreciated.0 -
Stub category pages (dupe warning)
Hi I have a number of highly ranked category pages. However, at times these contain no products for a few weeks, etc. They are being flagged as duplicate content as they are just stub pages when they have no products, with the same "No products found" message. I don't want to risk 'noindex' ing the pages though - because as soon as they have products in, they become valuable pages and I would hate to lose a good ranking. Should I just leave them as-is and ignore the dupe warnings?
Intermediate & Advanced SEO | | benseb0 -
Putting "noindex" on a page that's in an iframe... what will that mean for the parent page?
If I've got a page that is being called in an iframe, on my homepage, and I don't want that called page to be indexed.... so I put a noindex tag on the called page (but not on the homepage) what might that mean for the homepage? Nothing? Will Google, Bing, Yahoo, or anyone else, potentially see that as a noindex tag on my homepage?
Intermediate & Advanced SEO | | Philip-DiPatrizio0 -
Paging Question: Rel Next or Canonical?
Hi, Lets say you have a category which displays a list of 20 products and pagination of up to 10 pages. The root page has some content but when you click through the paging the content is removed leaving only the list of products. Would it be best to apply a canonical tag on the paging back to the root or apply the prev/next tags. I understand prev/next is good for say a 3 part article where each page holds unique content but how do you handle the above situation? Thanks
Intermediate & Advanced SEO | | Bondara0 -
Pages with Little Content
I have a website that lists events in Dublin, Ireland. I want to provide a comprehensive number of listings but there are not enough hours in the day to provide a detailed (or even short) unique description for every event. At the moment I have some pages with little detail other than the event title and venue. Should I try and prevent Google from crawling/indexing these pages for fear of reducing the overall ranking of the site? At the moment I only link to these pages via the RSS feed. I could remove the pages entirely from my feed, but then that mean I remove information that might be useful to people following the events feed. Here is an example page with very little content
Intermediate & Advanced SEO | | andywozhere0 -
Category pages in forums
I would like to hear feedback on the best SEO practice for forum category pages. An example would be a forum about cars. You can have a Chervorlet category which contains forums for every chevy model. Often this category page is simply a list of all the forums. If I noindex, follow the page then am I missing an opportunity? I am thinking of Google sitemaps for example where this page can be used for a category link. If I noindex the page, there probably isn't another great place for a sitemap to link to. I could fill out the page with wiki-like generic chevy information. Please share any thoughts or best practices.
Intermediate & Advanced SEO | | RyanKent0