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. How to implement multilingual sitemaps when not all pages have translations

    How to implement multilingual sitemaps when not all pages have translations

    Technical SEO Issues
    3 1 58
    • 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.
    • Telsenome
      Telsenome last edited by

      We are trying to implement sitemaps for a site that has localized content for a few countries. We’ve concluded that we should utilize sitemapindex and then create one sitemap per country. Now to the problems we’re facing.

      Not all urls on the site have translations, how should these urls be presented in the sitemap? Should they be stated simply like so?

      <url><loc>https://example.com/sdfsdf</loc></url>

      So urls with the hreflang attribute and without are mixed in the same sitemap, or is that a problem? (I have added empty rows to make it easier to read)

      <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" <br="">xmlns:xhtml="http://www.w3.org/1999/xhtml"></urlset>

      <url><loc>http://www.example.com/english/page.html</loc>
      <xhtml:link rel="alternate"  hreflang="de"  href="http://www.example.com/deutsch/page.html"><xhtml:link rel="alternate" hreflang="de-ch" href="http://www.example.com/schweiz-deutsch/page.html"><xhtml:link rel="alternate" hreflang="en" href="http: www.example.com="" english="" page.html"=""></xhtml:link rel="alternate" hreflang="en" href="http:></xhtml:link></xhtml:link></url>

      <url><loc>http://www.example.com/page-with-no-translations</loc></url>

      <url><loc>http://www.example.com/page-with-no-translations2</loc></url>

      <url><loc>http://www.example.com/page-with-no-translations3</loc></url>

      <url><loc>http://www.example.com/deutsch/page.html</loc>
      <xhtml:link rel="alternate"  hreflang="de"  href="http://www.example.com/deutsch/page.html"><xhtml:link rel="alternate"  hreflang="de-ch"  href="http://www.example.com/schweiz-deutsch/page.html"><xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/english/page.html"></xhtml:link rel="alternate"></xhtml:link></xhtml:link></url>

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

        Additional question about which parts should go into which sitemap. The url https://example.com/us/driver-guides/railroad-crossings has 3 "translations". Where should all these <url>elements go? We've used a Google sheet provided by Ahrefs to create these. </url>

        This one is for us so it should be put in the us sitemap? (sorry about the code block being single line, I don't understand why they're not multi line)

        <loc>https://example.com/us/driver-guides/railroad-crossings</loc>

        This one is for uk so it should be put in the uk sitemap?

        <loc>https://example.com/uk/car/level-crossings</loc>

        This one is for se so it should be put in the se sitemap?

        <loc>https://example.com/se/bil/jarnvagskorsningar</loc>

        This one is the same as the first one. I assume it's for the "x-default" attribute. Where should it be put?

        <loc>https://example.com/us/driver-guides/railroad-crossings</loc>

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

          I continued to think about the matter and thought of this approach for adding the pages with no localization to the multilingual sitemap (just putting it here):

          <url><loc>https://example.com/page-with-no-localization</loc></url>

          Or is it better to put a simple link to the page in the sitemap?

          <url><loc>https://example.com/page-with-no-localization</loc></url>

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Issues Indexing Translated Pages
            benesmartin
            benesmartin
            0
            2
            44

          • Do I have to create a separate sitemap for my multilingual site?
            ReneAnton
            ReneAnton
            0
            3
            65

          • Blog Page Titles - Page 1, Page 2 etc.
            Paul-Gross
            Paul-Gross
            0
            8
            549

          • Sitemap indexed pages dropping
            zenstorageunits
            zenstorageunits
            0
            9
            4.3k

          • How could i create sitemap with 1000 page and should i update sitemap frequently?
            magician
            magician
            0
            4
            841

          • Translating Page Titles & Page Descriptions
            cfguti
            cfguti
            0
            2
            219

          • How do you implement pages requiring login?
            DougRoberts
            DougRoberts
            0
            2
            530

          • Page rank 2 for home page, 3 for service pages
            Alex-Harford
            Alex-Harford
            0
            8
            498

          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