Locale code in route versus in query string for i18n

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
2
down vote

favorite












So I came across a library that helps with adding locale code to the route of your website. eg website.com/en-US/about/



The library claims that one should do it this way because "Google needs different URLs to crawl and render your pages for each language.". Is this correct?



Also, would simply putting the locale code in the query string accomplish the same thing? eg website.com/about/?locale=en-US



More generally: what are the advantages and disadvantages of route-based vs query-based?










share|improve this question







New contributor




Fernando Tiberti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    up vote
    2
    down vote

    favorite












    So I came across a library that helps with adding locale code to the route of your website. eg website.com/en-US/about/



    The library claims that one should do it this way because "Google needs different URLs to crawl and render your pages for each language.". Is this correct?



    Also, would simply putting the locale code in the query string accomplish the same thing? eg website.com/about/?locale=en-US



    More generally: what are the advantages and disadvantages of route-based vs query-based?










    share|improve this question







    New contributor




    Fernando Tiberti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      So I came across a library that helps with adding locale code to the route of your website. eg website.com/en-US/about/



      The library claims that one should do it this way because "Google needs different URLs to crawl and render your pages for each language.". Is this correct?



      Also, would simply putting the locale code in the query string accomplish the same thing? eg website.com/about/?locale=en-US



      More generally: what are the advantages and disadvantages of route-based vs query-based?










      share|improve this question







      New contributor




      Fernando Tiberti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      So I came across a library that helps with adding locale code to the route of your website. eg website.com/en-US/about/



      The library claims that one should do it this way because "Google needs different URLs to crawl and render your pages for each language.". Is this correct?



      Also, would simply putting the locale code in the query string accomplish the same thing? eg website.com/about/?locale=en-US



      More generally: what are the advantages and disadvantages of route-based vs query-based?







      seo internationalization






      share|improve this question







      New contributor




      Fernando Tiberti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Fernando Tiberti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Fernando Tiberti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 hours ago









      Fernando Tiberti

      1111




      1111




      New contributor




      Fernando Tiberti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Fernando Tiberti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Fernando Tiberti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          They should be identical as far as SEO is concerned, because Google doesn't look in the URL to determine language - to determine language they actually use machine learning on the text content itself.



          The important part for SEO is to just make Google aware of the different language versions of each page by using meta tags like so:



          <head>
          <title>Your Website</title>
          <link rel="alternate" hreflang="en-us"
          href="http://website.com/en-US/about/" />
          <link rel="alternate" hreflang="de"
          href="http://website.com/de/about/" />
          </head>


          More info at Google's guidelines for specifying web page languages.






          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "45"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );






            Fernando Tiberti is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwebmasters.stackexchange.com%2fquestions%2f118511%2flocale-code-in-route-versus-in-query-string-for-i18n%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            They should be identical as far as SEO is concerned, because Google doesn't look in the URL to determine language - to determine language they actually use machine learning on the text content itself.



            The important part for SEO is to just make Google aware of the different language versions of each page by using meta tags like so:



            <head>
            <title>Your Website</title>
            <link rel="alternate" hreflang="en-us"
            href="http://website.com/en-US/about/" />
            <link rel="alternate" hreflang="de"
            href="http://website.com/de/about/" />
            </head>


            More info at Google's guidelines for specifying web page languages.






            share|improve this answer


























              up vote
              2
              down vote













              They should be identical as far as SEO is concerned, because Google doesn't look in the URL to determine language - to determine language they actually use machine learning on the text content itself.



              The important part for SEO is to just make Google aware of the different language versions of each page by using meta tags like so:



              <head>
              <title>Your Website</title>
              <link rel="alternate" hreflang="en-us"
              href="http://website.com/en-US/about/" />
              <link rel="alternate" hreflang="de"
              href="http://website.com/de/about/" />
              </head>


              More info at Google's guidelines for specifying web page languages.






              share|improve this answer
























                up vote
                2
                down vote










                up vote
                2
                down vote









                They should be identical as far as SEO is concerned, because Google doesn't look in the URL to determine language - to determine language they actually use machine learning on the text content itself.



                The important part for SEO is to just make Google aware of the different language versions of each page by using meta tags like so:



                <head>
                <title>Your Website</title>
                <link rel="alternate" hreflang="en-us"
                href="http://website.com/en-US/about/" />
                <link rel="alternate" hreflang="de"
                href="http://website.com/de/about/" />
                </head>


                More info at Google's guidelines for specifying web page languages.






                share|improve this answer














                They should be identical as far as SEO is concerned, because Google doesn't look in the URL to determine language - to determine language they actually use machine learning on the text content itself.



                The important part for SEO is to just make Google aware of the different language versions of each page by using meta tags like so:



                <head>
                <title>Your Website</title>
                <link rel="alternate" hreflang="en-us"
                href="http://website.com/en-US/about/" />
                <link rel="alternate" hreflang="de"
                href="http://website.com/de/about/" />
                </head>


                More info at Google's guidelines for specifying web page languages.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 19 mins ago

























                answered 45 mins ago









                Maximillian Laumeister

                831318




                831318




















                    Fernando Tiberti is a new contributor. Be nice, and check out our Code of Conduct.









                     

                    draft saved


                    draft discarded


















                    Fernando Tiberti is a new contributor. Be nice, and check out our Code of Conduct.












                    Fernando Tiberti is a new contributor. Be nice, and check out our Code of Conduct.











                    Fernando Tiberti is a new contributor. Be nice, and check out our Code of Conduct.













                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwebmasters.stackexchange.com%2fquestions%2f118511%2flocale-code-in-route-versus-in-query-string-for-i18n%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery