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. Hreflang in header...should I do a Sitemap?

    Hreflang in header...should I do a Sitemap?

    Intermediate & Advanced SEO
    4 2 926
    • 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.
    • navdm
      navdm last edited by

      A client implemented hreflang tags in the site header. MOZ says you aren't supposed to do an hreflang Sitemap as well. My question is how should I do a Sitemap now (or should I do one at all)?

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

        Hello there!

        Yes you should, better you must do a sitemap, but do not include the hreflang attribute.
        Here: Google Search Console help you can see how a sitemap INCLUDING the hreflang looks like. Remove the portion:

        <xhtml:link <br="">rel="alternate"
        hreflang="de"
        href="http://www.example.com/deutsch/"
        /></xhtml:link>

        Hope it helps.
        Good Luck!
        GR.

        navdm 1 Reply Last reply Reply Quote 1
        • navdm
          navdm @GastonRiera last edited by

          Hi Gaston - Thanks for the response. My urls are set up like so:

          • mysite.com/us/en/page
          • mysite.com/fr/fr/page
          • mysite.com/ca/fr/page
          • mysite.com/mx/es/page
          • mysite.com/es/es/page

          And so on. Would you recommend doing a separate sitemap for each language/country? Thus:

          • mysite.com/us/en/sitemap.xml
          • mysite.com/fr/fr/sitemap.xml
          • mysite.com/ca/fr/sitemap.xml
          • mysite.com/mx/es/sitemap.xml
          • mysite.com/es/es/sitemap.xml

          Thanks!

          GastonRiera 1 Reply Last reply Reply Quote 0
          • GastonRiera
            GastonRiera @navdm last edited by

            Hi there,

            There are many ways to do it. In my opinion:

            • If the amount of pages is low, you can do it in just one sitemap.
            • If the amount is really huge, do it in different sitemaps, stating in the name of each of them the language (e.g. sitemap-es-mx.xml) and create a sitemap_index.hml with all those.

            Remember that its best practice to have the sitemaps in the root folder: domain.com/sitemap

            Best luck.
            GR.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • URL indexed but not submitted in sitemap, however the URL is in the sitemap
              NickSamuel
              NickSamuel
              0
              2
              115

            • For a sitemap.html page, does the URL slug have to be /sitemap?
              ThompsonPaul
              ThompsonPaul
              0
              4
              205

            • This url is not allowed for a Sitemap at this location error using pro-sitemaps.com
              lgrozeva
              lgrozeva
              0
              3
              537

            • Hreflang Sitemap
              gfiorelli1
              gfiorelli1
              0
              2
              165

            • XML Sitemaps - how to create the perfect XML Sitemap
              AlanMosley
              AlanMosley
              0
              2
              3.5k

            • Sitemaps
              0
              1
              126

            • Are there any disadvantages of switching from xml sitemaps to .asp sitemaps in GWT
              robertrRSwalters
              robertrRSwalters
              0
              3
              947

            • Can a XML sitemap index point to other sitemaps indexes?
              KeriMorgret
              KeriMorgret
              0
              3
              1.9k

            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