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. International Issues
    4. Multilingual website - Url problem (sitemap)

    Multilingual website - Url problem (sitemap)

    International Issues
    3 3 666
    • 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.
    • Anycoin
      Anycoin last edited by

      At this moment our website both uses the language in the url like "en" and localizes the url itself ("books" in english and "boeken" in dutch). Because of the history of making our website multilingual we have a system that takes the browser language for the localization if the url doesn't contain a language like "en".

      This means:

      • www.test.com/books = browser language
      • www.test.com/en/books = english language
      • www.test.com/boeken = browser language
      • www.test.com/nl/boeken = dutch language

      Now for the sitemap this makes it a little troublesome for me because which hreflang is used for which url?

      1) The first thing I thought of was using x-default for all urls that get the language of the browser.

       <code><url><loc>http://www.test.com/books</loc></url></code> 
      

      But as you can see we now got 2 times x-default.

      2) Another solution I thought of was just use the localization of the url to determine the language like:

       <code><url><loc>http://www.test.com/books</loc></url></code> 
      

      But now we got 2 of each language for the same page.

      3) The last solution I thought of was removing links without a language in the url (except for the homepage, which will still have an x-default) like:

       <code><url><loc>http://www.test.comen/books</loc></url></code> 
      

      But for this solution I need to put 301's at pages that are "deleted" and also need to change the system to 301 to the right page. Although the last point isn't really a problem I'm kind of worried that I will lose some of the "seo points" with a 301. (When we changed our domain in the past we had a bad experience with the 301 of our old domain)

      What do you think would be the best solution for SEO? Or do you have any other suggestions or solutions I haven't thought of.

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

        From their support page (https://support.google.com/webmasters/answer/189077?hl=en) when you're combining region plus language you'll want to do this:

        For example, you may have specific URLs for English speakers in Ireland (en-ie), Canada (en-ca), and Australia (en-au), but want all other English speakers to see your generic English (en) page, and everyone else to see the homepage. In this case you should specify the generic English-language (en) page for searchers in, say, the UK. You can annotate this cluster of pages using a Sitemap file or using HTML link tags like this:

        That way you can even have a situation like nl-en or vice versa. I'd use 302s for redirecting based on conditional things like browser settings.  Cheers!

        1 Reply Last reply Reply Quote 1
        • katemorris
          katemorris last edited by

          The best way to go about this is to keep the URLs with the language in the structure. Redirect (301) the ones that don't have it to the ones that do.

          However, it sounds like that causes a problem. If the above isn't a possibility, use a canonical from the non-language URL to the one with it. Then do your HREFLANG in sitemaps, and only use the URLs with the language tag in the sitemaps. You can also do the coding on the page, just make sure the HREFLANG tags are not on the non-language pages.

          • Example URL: http://www.test.com/boeken would have a canonical tag that points to http://www.test.com/nl/boeken
          • Only http://www.test.com/nl/boeken is listed in the sitemaps
          • OR Only http://www.test.com/nl/boeken has HREFLANG tags. http://www.test.com/boeken would only have the canonical.

          That should solve your problem.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Good day team.. have problem with my website i lost all ranking and lost 10x times traffic in 1 day without reason...
            0
            1
            64

          • Correct Hreflang & Canonical Tags for Multi-Regional Website English Language Only having URL Parameters
            effectdigital
            effectdigital
            0
            2
            412

          • Herflang sitemap
            MTBE
            MTBE
            0
            4
            74

          • What are the SEO implications of having a website hosted in Singapore (as a subdomain of the global website) when the website is targeting the UK audience?
            RobCairns
            RobCairns
            0
            3
            87

          • URL structure of international hotel website
            mlehr
            mlehr
            0
            7
            238

          • Sitemap for multilanguage website
            AymanH
            AymanH
            0
            6
            163

          • Will website with tag hreflang pass link juice to other country/language version of website?
            gfiorelli1
            gfiorelli1
            0
            4
            1.3k

          • Backlinks to URLs with Language Parameters (for Chinese version of website) and SEO?
            MoosaHemani
            MoosaHemani
            0
            2
            384

          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