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. Intermediate & Advanced SEO
    4. Site-wide Canonical Rewrite Rule for Multiple Currency URL Parameters?

    Site-wide Canonical Rewrite Rule for Multiple Currency URL Parameters?

    Intermediate & Advanced SEO
    4 3 193
    • 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.
    • NickG-123
      NickG-123 last edited by

      Hi Guys,

      I am currently working with an eCommerce site which has site-wide duplicate content caused by currency URL parameter variations. Example:

      https://www.marcb.com/

      https://www.marcb.com/?setCurrencyId=3

      https://www.marcb.com/?setCurrencyId=2

      https://www.marcb.com/?setCurrencyId=1

      My initial thought is to create a bunch of canonical tags which will pass on link equity to the core URL version. However I was wondering if there was a rule which could be implemented within the .htaccess file that will make the canonical site-wide without being so labour intensive.

      I also noticed that these URLs are being indexed in Google, so would it be worth setting a site-wide noindex to these variations also?

      Thanks

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

        This issue is resolved by adding a single self-referential rel-canonical tag to the header of each page of the site, Catherine. Once you've done that, the URLs that contain the parameters will automatically contain the canonical to the primary URL (because the pages' code are actually the same - it's just the URL itself that is changing. By which I mean - there aren't separate pages for each of the currencies. They're are all the same page code, with just the parameter added to the URL and prices dynamically changed.)

        This does mean that the search engines would index the page with the default prices, which appears to be Euros.

        For example, if your home page had a self-referential canonical tag, it's canonical tag would be

        <link rel="<a class="attribute-value">canonical</a>" href="<a class="attribute-value">http://www.marcb.com</a>" />

        While this may seem redundant, it also means that this URL https://www.marcb.com/?setCurrencyId=2 would also contain the above canonical tag, since the page is actually built from the same code. So it's canonical would point to the correct URL automatically, without having to do anything specific for all those variations. This is a core function of how CMSs (Content Management Systems) templates work. This time it works in your favour.

        You definitely don't want to no-index those parameter-based variations even if you could. Once you get the canonicals properly implemented, you want the search crawlers to keep crawling those pages URLs so they can discover the corrected canonicals and understand that they are intentional dupes of the core page. They'll eventually drop the parameter-based URLs out of the index, which you can monitor in your Google Search Console, for example. There's a major benefit to the site if the search crawlers aren't wasting their time on duplicate/useless pages, as well as reducing potential issues with Panda/Quality algorithms, so well worth getting this corrected right away.

        Hope all that makes sense?

        Paul

        ThompsonPaul SixSpokeMedia64 2 Replies Last reply Reply Quote 1
        • ThompsonPaul
          ThompsonPaul @ThompsonPaul last edited by

          Added to note - you can also use GDC to inform Google which URL parameters should be ignored when indexing - can be a quick shortcut initially, but you'll definitely want to get rel-canonical properly implemented for Google as well as all the other search engines.

          1 Reply Last reply Reply Quote 0
          • SixSpokeMedia64
            SixSpokeMedia64 @ThompsonPaul last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • How to deal with parameter URLs as primary internal links and not canonicals? Weird situation inside...
              willcritchlow
              willcritchlow
              0
              5
              47

            • Google Only Indexing Canonical Root URL Instead of Specified URL Parameters
              Nitruc
              Nitruc
              0
              3
              57

            • Breaking up a site into multiple sites
              Fatueque90
              Fatueque90
              0
              4
              179

            • URLs with parameters + canonicals + meta robots
              JessicaZylberberg
              JessicaZylberberg
              0
              3
              154

            • I currently have a canonical tag pointing to a different url for single page categories on eCommerce site. Is this wrong ?
              PeteC12
              PeteC12
              0
              3
              182

            • Robots.txt Blocked Most Site URLs Because of Canonical
              0
              1
              117

            • Site revamp for neglected site - modifying site structure, URLs and content - is there an optimal approach?
              macrobbo
              macrobbo
              0
              3
              171

            • Using "rel canonical" with multiple sites
              Dr-Pete
              Dr-Pete
              0
              3
              352

            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