• seohunters9

        See all notifications

        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
        • 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. Home
        2. SEO Tactics
        3. Intermediate & Advanced SEO
        4. Partial Match or RegEx in Search Console's URL Parameters Tool?

        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.

        Partial Match or RegEx in Search Console's URL Parameters Tool?

        Intermediate & Advanced SEO
        4
        15
        3248
        Loading More Posts
        • Watching

          Notify me of new replies.
          Show question in unread.

        • Not Watching

          Do not notify me of new replies.
          Show question in unread if category is not ignored.

        • Ignoring

          Do not notify me of new replies.
          Do not show question in unread.

        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as question
        Locked
        This topic has been deleted. Only users with question management privileges can see it.
        • Ria_
          Ria_ last edited by

          So I currently have approximately 1000 of these URLs indexed, when I only want roughly 100 of them.

          Let's say the URL is www.example.com/page.php?par1=ABC123=&par2=DEF456=&par3=GHI789=

          All the indexed URLs follow that same kinda format, but I only want to index the URLs that have a par1 of ABC (but that could be ABC123 or ABC456 or whatever). Using URL Parameters tool in Search Console, I can ask Googlebot to only crawl URLs with a specific value. But is there any way to get a partial match, using regex maybe?

          Am I wasting my time with Search Console, and should I just disallow any page.php without par1=ABC in robots.txt?

          1 Reply Last reply Reply Quote 0
          • Andy.Drinkwater
            Andy.Drinkwater @Ria_ last edited by

            No problem 🙂

            Hope you get it sorted!

            -Andy

            1 Reply Last reply Reply Quote 0
            • Ria_
              Ria_ @DirkC last edited by

              Thank you! 😄

              1 Reply Last reply Reply Quote 0
              • Ria_
                Ria_ @Andy.Drinkwater last edited by

                Haha, I think the train passed the station on that one. I would have realised eventually... XD

                Thanks for your help!

                Andy.Drinkwater 1 Reply Last reply Reply Quote 1
                • DirkC
                  DirkC last edited by

                  Don't forget that . & ? have a specific meaning within regex - if you want to use them for pattern matching you will have to escape them. Also be aware that not all bots are capable of interpreting regex in robots.txt - you might want to be more explicit on the user agent - only using regex for Google bot.

                  User-agent: Googlebot

                  #disallowing page.php and any parameters after it

                  disallow: /page.php

                  #but leaving anything that starts with par1=ABC

                  allow: page.php?par1=ABC

                  Dirk

                  Ria_ 1 Reply Last reply Reply Quote 1
                  • Andy.Drinkwater
                    Andy.Drinkwater @Ria_ last edited by

                    Ah sorry I missed that bit!

                    -Andy

                    1 Reply Last reply Reply Quote 0
                    • Andy.Drinkwater
                      Andy.Drinkwater @Ria_ last edited by

                      Disallowing them would be my first priority really, before removing from index.

                      The trouble with this is that if you disallow first, Google won't be able to crawl the page to act on the noindex. If you add a noindex flag, Google won't index them the next time it comes-a-crawling and then you will be good to disallow 🙂

                      I'm not actually sure of the best way for you to get the noindex in to the page header of those pages though.

                      -Andy

                      Ria_ 1 Reply Last reply Reply Quote 0
                      • Ria_
                        Ria_ @Andy.Drinkwater last edited by

                        Yep, have done. (Briefly mentioned in my previous response.) Doesn't pass 😞

                        Andy.Drinkwater 1 Reply Last reply Reply Quote 0
                        • Ria_
                          Ria_ @Martijn_Scheijbeler last edited by

                          I thought so too, but according to Google the trailing wildcard is completely unnecessary, and only needs to be used mid-URL.

                          1 Reply Last reply Reply Quote 0
                          • Ria_
                            Ria_ @Andy.Drinkwater last edited by

                            Hi Andy,

                            Disallowing them would be my first priority really, before removing from index. Didn't want to remove them before I've blocked Google from crawling them in case they get added back again next time Google comes a-crawling, as has happened before when I've simply removed a URL here and there. Does that make sense or am I getting myself mixed up here?

                            My other hack of a solution would be to check the URL in the page.php, and if URL includes par1=ABC then insert noindex meta tag. (Not sure if that would work well or not...)

                            Andy.Drinkwater 1 Reply Last reply Reply Quote 0
                            • Martijn_Scheijbeler
                              Martijn_Scheijbeler @Ria_ last edited by

                              My guess would be that this line needs an * at the end.
                              Allow: /page.php?par1=ABC*

                              Ria_ 1 Reply Last reply Reply Quote 0
                              • Andy.Drinkwater
                                Andy.Drinkwater @Ria_ last edited by

                                Sorry Martijn, just to jump in here for a second - Ria, you can test this via the Robots.txt testing tool in search console before going live to make sure it work.

                                -Andy

                                Ria_ 1 Reply Last reply Reply Quote 0
                                • Ria_
                                  Ria_ @Martijn_Scheijbeler last edited by

                                  Hi Martijn, thanks for your response!

                                  I'm currently looking at something like this...

                                  **user-agent: *** #disallowing page.php and any parameters after it
                                  disallow: /page.php #but leaving anything that starts with par1=ABC
                                  allow: /page.php?par1=ABC

                                  I would have thought that you could disallow things broadly like that and give an exception, as you can with files in disallowed folders. But it's not passing Google's robots.txt Tester.

                                  One thing that's probably worth mentioning really is that there are only two variables that I want to allow of the par1 parameter. For example's sake, ABC123 and ABC456. So would need to be either a partial match or "this or that" kinda deal, disallowing everything else.

                                  Andy.Drinkwater Martijn_Scheijbeler 2 Replies Last reply Reply Quote 0
                                  • Andy.Drinkwater
                                    Andy.Drinkwater last edited by

                                    Hi Ria,

                                    I have never tried regular expressions in this way, so I can't tell you if this would work or not.

                                    However, If all 1000 of these URL's are already indexed, just disallowing access won't then remove them from Google. You would ideally be able to place a noindex tag on those pages and let Google act on them, then you will be good to disallow. I am pretty sure there is no option to noindex under the URL Parameter Tool.

                                    I hope that makes sense?

                                    -Andy

                                    Ria_ 1 Reply Last reply Reply Quote 0
                                    • Martijn_Scheijbeler
                                      Martijn_Scheijbeler last edited by

                                      Hi Ria,

                                      What you could do, but it also depends on the rest of your structure is Disallow these urls based on the parameters (what you could do in a worst case scenario is that you would disallow all URLs and then put an exception Allow in there as well to make sure you still have the right URLs being indexed).

                                      Martijn.

                                      Ria_ 1 Reply Last reply Reply Quote 0
                                      • 1 / 1
                                      • First post
                                        Last post

                                      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

                                      • rickyporco

                                        After hack and remediation, thousands of URL's still appearing as 'Valid' in google search console. How to remedy?

                                        I'm working on a site that was hacked in March 2019 and in the process, nearly 900,000 spam links were generated and indexed. After remediation of the hack in April 2019, the spammy URLs began dropping out of the index until last week, when Search Console showed around 8,000 as "Indexed, not submitted in sitemap" but listed as "Valid" in the coverage report and many of them are still hack-related URLs that are listed as being indexed in March 2019, despite the fact that clicking on them leads to a 404. As of this Saturday, the number jumped up to 18,000, but I have no way of finding out using the search console reports why the jump happened or what are the new URLs that were added, the only sort mechanism is last crawled and they don't show up there. How long can I expect it to take for these remaining urls to also be removed from the index? Is there any way to expedite the process? I've submitted a 'new' sitemap several times, which (so far) has not helped. Is there any way to see inside the new GSC view why/how the number of valid URLs in the indexed doubled over one weekend?

                                        Intermediate & Advanced SEO | | rickyporco
                                        0
                                      • Bankable

                                        How will changing my website's page content affect SEO?

                                        Our company is looking to update the content on our existing web pages and I am curious what the best way to roll out these changes are in order to maintain good SEO rankings for certain pages. The infrastructure of the site will not be modified except for maybe adding a couple new pages, but existing domains will stay the same. If the domains are staying the same does it really matter if I just updated 1 page every week or so, versus updating them all at once? Just looking for some insight into how freshening up the content on the back end pages could potentially hurt SEO rankings initially. Thanks!

                                        Intermediate & Advanced SEO | | Bankable
                                        1
                                      • fablau

                                        What's the best way to noindex pages but still keep backlinks equity?

                                        Hello everyone, Maybe it is a stupid question, but I ask to the experts... What's the best way to noindex pages but still keep backlinks equity from those noindexed pages? For example, let's say I have many pages that look similar to a "main" page which I solely want to appear on Google, so I want to noindex all pages with the exception of that "main" page... but, what if I also want to transfer any possible link equity present on the noindexed pages to the main page? The only solution I have thought is to add a canonical tag pointing to the main page on those noindexed pages... but will that work or cause wreak havoc in some way?

                                        Intermediate & Advanced SEO | | fablau
                                        3
                                      • McTaggart

                                        Why is /home used in this company's home URL?

                                        Just working with a company that has chosen a home URL with /home latched on - very strange indeed - has anybody else comes across this kind of homepage URL "decision" in the past? I can't see why on earth anybody would do this! Perhaps simply a logic-defying decision?

                                        Intermediate & Advanced SEO | | McTaggart
                                        0
                                      • Motava

                                        Other domains hosted on same server showing up in SERP for 1st site's keywords

                                        For the website in question, the first domain alphabetically on the shared hosting space, strange search results are appearing on the SERP for keywords associated with the site. Here is an example: A search for "unique company name" shows the results: www.uniquecompanyname.com as the top result. But on pages 2 and 3, we are getting results for the same content but for domains hosted on the same server. Here are some examples with the domain name replaced: UNIQUE DOMAIN NAME PAGE TITLE
                                        ftp.DOMAIN2.com/?action=news&id=63‎
                                        META DESCRIPTION TEXT UNIQUE DOMAIN NAME PAGE TITLE 2
                                        www.DOMAIN3.com/?action=news&id=120‎
                                        META DESCRIPTION TEXT2 UNIQUE DOMAIN NAME PAGE TITLE 2
                                        www.DOMAIN4.com/?action=news&id=120
                                        META DESCRIPTION TEXT2 UNIQUE DOMAIN NAME PAGE TITLE 3
                                        mail.DOMAIN5.com/?action=category&id=17‎
                                        META DESCRIPTION TEXT3 ns5.DOMAIN6.com/?action=article&id=27‎‎ There are more but those are just some examples. These other domain names being listed are other customer domains on the same VPS shared server. When clicking the result the browser URL still shows the other customer domain name B but the content is usually the 404 page. The page title and meta description on that page is not displayed the same as on the SERP.As far as we can tell, this is the only domain this is occurring for.So far, no crawl errors detected in Webmaster Tools and moz crawl not completed yet.

                                        Intermediate & Advanced SEO | | Motava
                                        0
                                      • MTalhaImtiaz

                                        How to check a website's architecture?

                                        Hello everyone, I am an SEO analyst - a good one - but I am weak in technical aspects. I do not know any programming and only a little HTML. I know this is a major weakness for an SEO so my first request to you all is to guide me how to learn HTML and some basic PHP programming. Secondly... about the topic of this particular question - I know that a website should have a flat architecture... but I do not know how to find out if a website's architecture is flat or not, good or bad. Please help me out on this... I would be obliged. Eagerly awaiting your responses, BEst Regards, Talha

                                        Intermediate & Advanced SEO | | MTalhaImtiaz
                                        0
                                      • nicole.healthline

                                        Is 404'ing a page enough to remove it from Google's index?

                                        We set some pages to 404 status about 7 months ago, but they are still showing in Google's index (as 404's). Is there anything else I need to do to remove these?

                                        Intermediate & Advanced SEO | | nicole.healthline
                                        0
                                      • JamesO

                                        To subnav or NOT to subnav... that's my question.... :)

                                        We are working on a new website that is golf related and wondering about whether or not we should set up a subnavigation dropdown menu from the main menu. For example: GOLF PACKAGES
                                          >> 2 Round Packages
                                          >> 3 Round Packages
                                          >> 4 Round Packages
                                          >> 5 Round Packages GOLF COURSES
                                          >> North End Courses
                                          >> Central Courses
                                          >> South End Courses This would actually be very beneficial to our users from a usability standpoint, BUT what about from an SEO standpoint? Is diverting all the link juice to these inner pages from the main site navigation harmful?  Should we just create a page for GOLF PACKAGES and break it down on that page?

                                        Intermediate & Advanced SEO | | JamesO
                                        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.