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. Multiple values for a single URL parameter - Is that possible?

    Multiple values for a single URL parameter - Is that possible?

    Technical SEO Issues
    3 2 492
    • 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.
    • himanshupatil
      himanshupatil last edited by

      I have a website which supports three languages - German, Spanish, Portuguese - by using language parameters.

      How do I configure my URL parameters so that the only the Spanish and Portuguese URLs are crawled but not the German URLs. Basically, how do i specify two values for a single parameter.

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

        I know you posted this a while ago, but I've just seen it.

        The simplest way would be to generate your ROBOTS meta tag based on the parameter. I code in PHP so this is my example, but it will depend on your platform

        Say your URL is domain.com?lang=es or ?lang=po or ?lang=de

        $lang = $_GET['lang'];

        if($lang=="de"){ echo ''; }

        else{ echo ''; }

        I left 'follow' in the German line because you may already have pages in the index, so this means Google DE has free reign over all your site, but any pages it finds should not be indexed.

        If the site's not live yet, then you can change the 'follow' in the DE line to 'nofollow'.

        Hope this helps.

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

          I know you posted this a while ago, but I've just seen it.

          The simplest way would be to generate your ROBOTS meta tag based on the parameter. I code in PHP so this is my example, but it will depend on your platform

          Say your URL is domain.com?lang=es or ?lang=po or ?lang=de

          $lang = $_GET['lang'];

          if($lang=="de"){ echo ''; }

          else{ echo ''; }

          I left 'follow' in the German line because you may already have pages in the index, so this means Google DE has free reign over all your site, but any pages it finds should not be indexed.

          If the site's not live yet, then you can change the 'follow' in the DE line to 'nofollow'.

          Hope this helps.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • URL Question: Is there any value for ecomm sites in having a reverse "breadcrumb" in the URL?
            ROI_DNA
            ROI_DNA
            0
            4
            229

          • Does Google add parameters to the URL parameters in webmaster tools/
            merch_zzounds
            merch_zzounds
            0
            7
            208

          • URL Parameters
            DirkC
            DirkC
            1
            2
            120

          • Crawl reveals hundreds of urls with multiple urls in the url string
            irvingw
            irvingw
            0
            5
            455

          • How easy is it to quantify the negative value of additional (possibly unnecessary) folders and subfolders in a URL?
            EGOL
            EGOL
            0
            2
            340

          • Is there actual risk to having multiple URLs that frame in main url? Or is it just bad form and waste of money?
            icecarats
            icecarats
            0
            7
            635

          • Dynamic Parameters in URL
            sesertin
            sesertin
            0
            2
            513

          • Ignore url parameters without the 'parameter=' ?
            Hakkasan
            Hakkasan
            0
            3
            950

          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