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. Best way to noindex long dynamic urls?

    Best way to noindex long dynamic urls?

    Technical SEO Issues
    12 3 1.5k
    • 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.
    • NakulGoyal
      NakulGoyal last edited by

      I agree with Federico one hundred percent. Figure out what your primary SEO friendly URLs are for these kinds of pages and canonical them back to that page.

      wcbuckner 1 Reply Last reply Reply Quote 0
      • wcbuckner
        wcbuckner @FedeEinhorn last edited by

        Thanks for the response. The site is Wordpress - is there an easy way to write some sort of rule that would canonical any of these types of pages to a category page? How would you go about doing that?

        FedeEinhorn 1 Reply Last reply Reply Quote 0
        • wcbuckner
          wcbuckner @NakulGoyal last edited by

          Thanks for the response. The site is Wordpress - is there an easy way to write some sort of rule that would canonical any of these types of pages to a category page? How would you go about doing that?

          1 Reply Last reply Reply Quote 0
          • FedeEinhorn
            FedeEinhorn @wcbuckner last edited by

            Well, that will make a little easier from one side and harder from the other.

            You can try installing SEO by Yoast, that will put all the canonical tags for you, however, I think it won't link the search result pages to the canonical page that lists them all.

            That might require a little coding.

            If there's another page, outside /property-search-page/ folder that lists all villas, then you can disallow that folder in the robots.txt file, and that should fix it. If there isn't, well, then you will need to edit the /property-search-page/ page to use a static canonical tag that points to the page that lists all the villas removing any kind of filtering.

            Hope that helps!

            wcbuckner 1 Reply Last reply Reply Quote 0
            • wcbuckner
              wcbuckner @FedeEinhorn last edited by

              We already have Yoast installed, but the errors are still showing up in the Moz report.

              To clarify, let's assume we have another page that lists all the villas (/all-villas/). If I go to the property-search-page php file and canonical=rel it to /all-villas/, will it canonical=rel all /property-search-page/?whatever pages to the /all-villas/ page?

              NakulGoyal FedeEinhorn 2 Replies Last reply Reply Quote 0
              • NakulGoyal
                NakulGoyal @wcbuckner last edited by

                Yes, it will. Also looks like custom code, it depends on how the header is coded. But it should work. Test it, if you can. This should solve your problems relatively easily. If nothing works, you can always do a robots.txt deny for /property-search-page/?* pages, but that's not a recommended solution. Try the canonical way to see if it works first.

                1 Reply Last reply Reply Quote 0
                • FedeEinhorn
                  FedeEinhorn @wcbuckner last edited by

                  If you have a /all-villas/ page then you should go ahead and noindex the search results as Google Guidelines suggests. You can either do it in the /property-search-page/ or using the robots.txt file.

                  In the robots.txt, add:

                  disallow: /property-search-page/

                  The robots method guarantees that no page inside that folder is indexed or even crawled (including /property-search-page/?whatever).

                  Or on the page /property-search-page/ you can add the meta noindex as such:

                  Then check if that meta tag is shown in all search results (just check a couple of them).

                  Hope that works!

                  wcbuckner 2 Replies Last reply Reply Quote 0
                  • wcbuckner
                    wcbuckner @FedeEinhorn last edited by

                    You guys rock! I'll try these out tomorrow. Thanks a million.

                    1 Reply Last reply Reply Quote 0
                    • wcbuckner
                      wcbuckner @FedeEinhorn last edited by

                      Having some trouble... Because the site is Wordpress, which dynamically generates pages, there is no /property-search-page/ nor is there a property-search-page.php in the editor files, so the only option I have is to put disallow: /property-search-page/ in the robots.txt file, correct?

                      FedeEinhorn 1 Reply Last reply Reply Quote 0
                      • FedeEinhorn
                        FedeEinhorn @wcbuckner last edited by

                        If you have a page that lists all the villas outside the search results, then you don't lose anything by blocking that folder on the robots.txt

                        But still, somebody, the guy that wrote the custom theme knows how to do the changes needed.

                        If you want I can help you with it, for free 🙂 Just PM me (I'll need FTP access).

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • SEO URLs: 1\. URLs in my language (Greek, Greeklish or English)? 2\. Αt the end it is good to put -> .html? What is the best way to get great ranking?
                          marioskal
                          marioskal
                          0
                          7
                          662

                        • Best practices for making a very long URL shorter
                          Casey_Bryan
                          Casey_Bryan
                          0
                          2
                          32

                        • What's the best way to handle product filter URLs?
                          davebuts
                          davebuts
                          0
                          2
                          278

                        • What is the best way to handle Product URLs which prepopulate options?
                          0
                          1
                          46

                        • Best way to implement noindex tags on archived blogs
                          TomRayner
                          TomRayner
                          0
                          2
                          1.0k

                        • URLs in Greek, Greeklish or English? What is the best way to get great ranking?
                          tevag
                          tevag
                          0
                          3
                          5.1k

                        • What is the best way to fix legacy overly-nested URLs?
                          ThemeParkTourist
                          ThemeParkTourist
                          0
                          5
                          470

                        • Which is best of narrow by search URLs? Canonical or NOINDEX
                          Dr-Pete
                          Dr-Pete
                          0
                          10
                          1.2k

                        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