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. Query string in url - duplicate content?

    Query string in url - duplicate content?

    Technical SEO Issues
    6 4 4.9k
    • 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.
    • pauledwards
      pauledwards last edited by

      Hi everyone I would appreciate some advice on the following.

      I have a page which has some nice content on but it also has a search functionality. When a search is run a querystrong is run. So i will get something like mypage.php?id=20 etc.

      With many different url potentials, will each query string be seen as a different page? If so i don't want duplicate content.

      So am i best putting canonical tags in the head tags on mypage.php ? to avoid Google seeing potential duplicate content.

      Many thanks for all your advice.

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

        The short answer: yes and yes

        Anything that changes in the URL, even one character, will be seen as a new page

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

          Thanks for that.

          So mypage.php i will add a canonical tag which says mypage.php is the original page for the content.

          This will then mean Google will only value mypage.php as the unique content - not any pages with a different query string in for example pages such as mypage.php?id=10&sport=football.

          1 Reply Last reply Reply Quote 0
          • marcelo-275398
            marcelo-275398 last edited by

            You may not even have to bother with a canonical tag depending on your set up,

            You may be able to amend the parameter settings in webmaster tools.

            pauledwards rhutchings 2 Replies Last reply Reply Quote 0
            • pauledwards
              pauledwards @marcelo-275398 last edited by

              Could you explain more please, i've not tried that before.

              Kind Regards,

              1 Reply Last reply Reply Quote 0
              • rhutchings
                rhutchings @marcelo-275398 last edited by

                Yes, the best way is to handle via webmaster tools, and not try to handle via code on the sites.  In your Google webmaster tools account, go to "Site Cinfiguration" and "URL Parameters".  It will show you a handful of dynamic urls it has detected, how it is handling them currently.  Then you can manually add a dynamic parameter that exists on your site and tell google how to handle it.  They have a bunch of new options/features with this tool that makes it really useful now.

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • Strange Behavior - Dupe Content Via Query String URLs?
                  Alder
                  Alder
                  0
                  7
                  85

                • Duplicate Content - Different URLs and Content on each
                  HiveDigitalInc
                  HiveDigitalInc
                  0
                  6
                  152

                • Duplicate Content .ASP with Query Strings
                  MichaelC-15022
                  MichaelC-15022
                  0
                  5
                  185

                • URL query considered duplicate content?
                  BlazeSunglass
                  BlazeSunglass
                  0
                  3
                  688

                • Category URL Duplicate Content
                  MagnetsUSA
                  MagnetsUSA
                  0
                  3
                  329

                • Query strings in Canoncials URLs
                  irvingw
                  irvingw
                  0
                  4
                  373

                • Duplicate content error - same URL
                  KeriMorgret
                  KeriMorgret
                  1
                  6
                  439

                • Duplicate Page Title/Page Content Errors return URLs showing strange string of characters
                  RyanKent
                  RyanKent
                  0
                  4
                  590

                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