The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Adding rel=next / prev to pagination that uses Ajax?

    Adding rel=next / prev to pagination that uses Ajax?

    Intermediate & Advanced SEO
    3 3 2.2k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ocelot
      ocelot last edited by

      Hi

      I have just been informed that I should be using the rel=next / rel=prev markup on my category pages and search results pages that use pagination.

      How do i add these in?  Is it just the simple case of adding rel=next in the<a href="" for="" item="" in="" the="" pagination?<="" p=""></a>

      <a href="" for="" item="" in="" the="" pagination?<="" p="">Also does this work if your are using AJAX - on page load it displays the search / category pages then uses AJAX for additional pages so there is no page refresh</a>

      <a href="" for="" item="" in="" the="" pagination?<="" p="">Many Thanks</a>

      1 Reply Last reply Reply Quote 0
      • Lantec
        Lantec last edited by

        Yeah its simple enough to add.. Just the previous page to the one you are on with the rel tag "prev" and the next page with the rel tag "next".. As for your ajax issued im not too sure sorry, i dont see why it wouldnt work though.

        1 Reply Last reply Reply Quote 0
        • Dr-Pete
          Dr-Pete last edited by

          It's tricky - these are http://googlewebmastercentral.blogspot.com/2011/09/pagination-with-relnext-and-relprev.html

          To steal their example, page 2 of search results is going to need 2 tags, like this:

          If there's no page refresh and you're using AJAX, it's possible your paginated search isn't being indexed at all. It depends on what you're showing to bots. Unfortunately, that's nearly impossible to tell without seeing the site.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Rel="prev" / "next"
            NickSamuel
            NickSamuel
            1
            6
            422

          • Is this the correct way of using rel canonical, next and prev for paginated content?
            fablau
            fablau
            0
            15
            6.9k

          • Pagination and matching title tags - does it matter when using rel="prev" and "next" attributes?
            McTaggart
            McTaggart
            0
            4
            100

          • Using cononical and rel=next / prev for single page app
            TrueluxGroup
            TrueluxGroup
            0
            6
            247

          • Rel=next/prev for paginated pages then no need for "no index, follow"?
            khi5
            khi5
            0
            5
            1.0k

          • RSS and rel = prev/next for pagination
            touristips
            touristips
            0
            3
            262

          • Pagination: rel="next" rel="prev" in ?
            beck398
            beck398
            1
            5
            4.0k

          • Pagination, AJAX, rel=next and previous, rel canonical and meta noindex :)
            Dr-Pete
            Dr-Pete
            0
            4
            6.9k

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy