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. Random post plugin creates 302 redirects. What should I do?

    Random post plugin creates 302 redirects. What should I do?

    Intermediate & Advanced SEO
    4 2 125
    • 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.
    • Netrepid
      Netrepid last edited by

      Just started work on a great MMA news site. In their footer, they have a plugin for random posts, which creates URL strings with '?random=1' on the end and then 302 redirects to a random article on the site.

      I know SEO-friendly protocol for redirects is to use 301 and not any of the other 300's. However, I don't really see the need to do 301s for these because of the fact that they are random!

      That said, I also don't want to leave 1000s of errors that can hinder the 'crawlability' (don't judge me - that's a word :)) of my client's site.

      My thought right now is to noindex the urls with the '?random=1' in the string, so the spider doesn't worry about crawling those links. Not sure if that is proper code, but it seems that would be quick and effective.

      Is there a better way to attack this? If you know, please share with me!

      WP publishers who use random post plugins: have you experienced this? How did you fix it within the friendly confines of Wordpress?

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

        So if you don't want those links crawled, add rel="nofollow" to the <a>tag. Noindexing the pages will still allow crawlers to follow the links (but won't index what they find). </a>

        <a>All of the articles should have canonicals set up to index the file version of each page.

        RE: using random post plugins... why random and not related posts? Related posts would have readers more like to click through to another article and improves the overall relevance of the page for SEO. I'd look into a plugin that links directly to a random or relevant post instead of going through an intermediary link.</a>

        Netrepid 1 Reply Last reply Reply Quote 2
        • Netrepid
          Netrepid last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • Netrepid
            Netrepid @OlegKorneitchouk last edited by

            'nofollow' - got it. Thanks for the response, and your logic makes sense. Would love a 2nd or 3rd on that from the masses just to make sure.

            RE: the use or random posts as opposed to related - great question Oleg! My guess is this was a theme feature that was added in to fill the footer, TBH. I use LinkWithin for related posts on almost every blog I manage - I might need to suggest that to this site, too (or something similar).

            Appreciate the extra insights.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • 302 > 302 > 301 Redirect Chain Issue & Advice
              Everett
              Everett
              0
              3
              583

            • Should I redirect off topic blog posts?
              seo-mojo
              seo-mojo
              1
              7
              132

            • Geoip redirection, 301 or 302?
              john4math
              john4math
              0
              5
              4.0k

            • 302 redirects in the sitemap?
              evolvingSEO
              evolvingSEO
              0
              3
              618

            • Homepage 302 Redirect For SSL
              Rogs.SEO
              Rogs.SEO
              0
              9
              334

            • Create a link or redirect?
              Mike.Goracke
              Mike.Goracke
              0
              7
              183

            • Redirecting, then redirecting back
              Highland
              Highland
              0
              2
              256

            • Login redirect 302
              Anthony_NorthSEO
              Anthony_NorthSEO
              0
              9
              2.3k

            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