undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • MozCon
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Digital Marketers
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    Let your business shine with Listings AI
    Moz Local

    Let your business shine with Listings AI

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Digital Marketers

      Simplify SEO tasks to save time and grow your traffic.

    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

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

  1. Home
  2. SEO Tactics
  3. Technical SEO
  4. Best way to noindex long dynamic urls?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Best way to noindex long dynamic urls?

Technical SEO
3
12
2.9k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • wcbuckner
    wcbuckner last edited by Jan 28, 2014, 9:51 PM

    I just got a Mozcrawl back and see lots of errors for overly dynamic urls. The site is a villa rental site that gives users the ability to search by bedroom, amenities, price, etc, so I'm wondering what the best way to keep these types of dynamically generated pages with urls like /property-search-page/?location=any&status=any&type=any&bedrooms=9&bathrooms=any&min-price=any&max-price=any from indexing.

    Any assistance will be greatly appreciated : )

    1 Reply Last reply Reply Quote 0
    • FedeEinhorn
      FedeEinhorn @wcbuckner last edited by Jan 29, 2014, 2:46 PM Jan 29, 2014, 2:46 PM

      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
      • wcbuckner
        wcbuckner @FedeEinhorn last edited by Jan 29, 2014, 12:49 PM Jan 29, 2014, 12:49 PM

        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 Jan 29, 2014, 2:46 PM Reply Quote 0
        • wcbuckner
          wcbuckner @FedeEinhorn last edited by Jan 29, 2014, 3:15 AM Jan 29, 2014, 3:15 AM

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

          1 Reply Last reply Reply Quote 0
          • FedeEinhorn
            FedeEinhorn @wcbuckner last edited by Jan 29, 2014, 2:02 AM Jan 29, 2014, 2:02 AM

            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 Jan 29, 2014, 12:49 PM Reply Quote 0
            • NakulGoyal
              NakulGoyal @wcbuckner last edited by Jan 29, 2014, 1:58 AM Jan 29, 2014, 1:58 AM

              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
              • wcbuckner
                wcbuckner @FedeEinhorn last edited by Jan 29, 2014, 1:52 AM Jan 29, 2014, 1:52 AM

                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 Jan 29, 2014, 2:02 AM Reply Quote 0
                • FedeEinhorn
                  FedeEinhorn @wcbuckner last edited by Jan 29, 2014, 1:40 AM Jan 29, 2014, 1:40 AM

                  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 Jan 29, 2014, 1:52 AM Reply Quote 0
                  • wcbuckner
                    wcbuckner @NakulGoyal last edited by Jan 29, 2014, 1:34 AM Jan 29, 2014, 1:34 AM

                    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
                    • wcbuckner
                      wcbuckner @FedeEinhorn last edited by Jan 29, 2014, 1:33 AM Jan 29, 2014, 1:33 AM

                      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 Jan 29, 2014, 1:40 AM Reply Quote 0
                      • NakulGoyal
                        NakulGoyal last edited by Jan 29, 2014, 12:49 AM Jan 29, 2014, 12:49 AM

                        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 Jan 29, 2014, 1:34 AM Reply Quote 0
                        • FedeEinhorn
                          FedeEinhorn last edited by Jan 28, 2014, 9:57 PM Jan 28, 2014, 9:57 PM

                          I wouldn't put a noindex meta on them, instead I would consider using a canonical tag pointing to the page that lists all the villas.

                          Anyway, what programming language are you using?

                          wcbuckner 1 Reply Last reply Jan 29, 2014, 1:33 AM Reply Quote 1
                          • 1 / 1
                          1 out of 12
                          • First post
                            1/12
                            Last post

                          Got a burning SEO question?

                          Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                          Start my free trial


                          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.

                          • See all categories

                          Related Questions

                          • Tom3_15

                            Dynamically Inserting Noindex With Javascript

                            Hello, I have a broken plugin creating hundreds of WP-Content directory pages being indexed by Google. I can not access the source code of these pages to add a noindex to them. The page URL's all have the plugin name within them.  In order to resolve the issue, I wrote a solution with javascript to dynamically add in a noindex tag to any URL containing the plugin name. Would this noindex be respected by Google and is there a way to immediately check that it is respected? Currently, I can not delete the plugin due to issues with it's php. If you would like to view the code: https://codepen.io/trodrick/pen/Gwwaej?editors=0010 Thanks!

                            Technical SEO | Dec 4, 2018, 12:09 PM | Tom3_15
                            0
                          • alstam

                            301 redirect from dynamic url to static page

                            Hi, i want to redirect from this old link http://www.g-store.gr/product_info.php?products_id=1735/ to this one https://www.g-store.gr/golf-toualetas.html I have done several attempts but with no result. I anyone can help i will appreciate. My website runs in an Apache server with cpanel. Thank you

                            Technical SEO | Dec 17, 2018, 4:22 AM | alstam
                            0
                          • whiteonlySEO

                            Category URL Pagination where URLs don't change between pages

                            Hello, I am working on an e-commerce site where there are categories with multiple pages. In order to avoid pagination issues I was thinking of using rel=next and rel=prev and cannonical tags. I noticed a site where the URL doesn't change between pages, so whether you're on page 1,2, or 3 of the same category, the URL doesn't change. Would this be a cleaner way of dealing with pagination?

                            Technical SEO | Nov 30, 2015, 10:01 PM | whiteonlySEO
                            0
                          • Ideas-Money-Art

                            Why xml generator is not detecting all my urls?

                            Hi Mozzers, After adding 3 new pages to example.com, when generating the xml sitemap,  Iwasn't able to locate those 3 new url. This is the first time it is happening. I have checked the meta tags of these pages and they are fine. No meta robots setup! Any thoughts or idea why this is happening? how to fix this? Thanks!

                            Technical SEO | May 12, 2014, 1:48 PM | Ideas-Money-Art
                            0
                          • 2MSens

                            Best & easiest way to 301 redirect on IIS

                            Hi all, What is the best and easiest way to 301 redirect URLs on IIS server? I got access to the FTP and WordPress back office, but no access to the server admin. Is there an easy way to create 301 redirect without having to always annoy the tech in charge of the server? Thanks!

                            Technical SEO | Mar 14, 2014, 6:52 AM | 2MSens
                            0
                          • HelpSaude

                            Best URL format for pagination

                            We're currently changing the URL format of our website search, we have been discussing a lot and cannot decide the past way to pass the pagination parameter for SEO. We narrowed down to the options. www.website.com/apples/p2 - www.website.com/apples?page=2 - www.website.com/apples/page/2 What would give us best ranking returns? What do you think?

                            Technical SEO | Apr 19, 2013, 3:09 PM | HelpSaude
                            0
                          • gallreddy

                            What is the best URL designed for a product page?

                            Should a product page URL include the category name and subcategory name in it? Most ecommerce platforms it seems are designed to do have the category and sub-category names included in the URL followed by the product name. If that is the case and the same product is listed in more then 1 category and sub-category then will that product have 2 unique urls and as a result be treated as 2 different product pages by google?   And then since it is the same product in two places on the site won't google treat those 2 pages as having duplicate content? SO is it best to not have the category and sub-category names in the URL of a product page? And lastly, is there a preferred character limit for a URL to be less than in size? Thanks!

                            Technical SEO | Jul 21, 2012, 10:05 PM | gallreddy
                            0
                          • WalesDragon

                            Google News URL Format

                            Hi, We are currently redesigning our gaming website (www.totallygn.com) and one of our main goals is to get listed by Google News in future. Looking at the Google News URL requirements "The URL for each article must contain a unique number consisting of at least three digits." How does the above affect SEO structure?  I was planning on using a format such as www.totallygn.com/xbox-360/360-reviews/fifa-12-review how would this compare to something like? www.totallygn.com/xbox-360/360-reviews/fifa-12-review234 Thanks in advance for your help

                            Technical SEO | Dec 7, 2012, 7:26 AM | WalesDragon
                            0

                          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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                          • Accessibility
                          • Terms of Use
                          • Privacy

                          Looks like your connection to Moz was lost, please wait while we try to reconnect.