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. Technical SEO Issues
    4. Whats the best way to stop search results from being indexed?

    Whats the best way to stop search results from being indexed?

    Technical SEO Issues
    4 2 1.0k
    • 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.
    • stefanok
      stefanok last edited by

      I Have a Wordpress Site, and just realized that the search results are being indexed on Google creating duplicate content.

      Whats the best way for me to stop these search result pages from being indexed without stopping the regulars and important pages and posts from being indexed as well?

      **The typical search query looks like this:  **

      http://xxx.com/?s=Milnerton&search=search&srch_type

      AND

      this also includes results that are linked to the "view more" such as:
      http://xxx.com/index.php?s=viewmore

      Your help would be much appreciated.

      regards

      Stef

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

        Either get the Yoast SEO Plugin, which does a <meta name='robots' content='noindex,follow'/> on search pages automatically or if you want to code it for yourself something like:

        '; } ?> in the header.php file.

        Hope this helps.

        Sebastian

        stefanok 1 Reply Last reply Reply Quote 1
        • stefanok
          stefanok @Sebes last edited by

          Thank you so much Sebastian 🙂 Will do.

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

            You are welcome. Appreciate it if you mark it as answered 😉

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Need Help On Proper Steps to Take To De-Index Our Search Results Pages
              DirkC
              DirkC
              0
              15
              159

            • Google not indexing /showing my site in search results...
              David-Kley
              David-Kley
              0
              7
              342

            • What is the best way to stop a page being indexed?
              cbarron
              cbarron
              0
              8
              242

            • My beta site (beta.website.com) has been inadvertently indexed. Its cached pages are taking traffic away from our real website (website.com). Should I just "NO INDEX" the entire beta site and if so, what's the best way to do this? Please advise.
              Vuly
              Vuly
              0
              5
              1.6k

            • Why is "FTP Directory Listing" included in our Title in Google Search Results Index
              hasansplace
              hasansplace
              0
              8
              600

            • Should I index my search result pages?
              TylerAbernethy
              TylerAbernethy
              0
              6
              289

            • 301 help, whats the best way
              glennfriesen
              glennfriesen
              0
              3
              383

            • Search Result Page, Index or Not?
              JoeAmadon
              JoeAmadon
              0
              3
              652

            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