undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Intermediate & Advanced SEO
  4. Hreflang in header...should I do a Sitemap?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

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

Intermediate & Advanced SEO
2
4
1.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • navdm
    navdm last edited by Sep 15, 2017, 6:57 PM

    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
      Gaston Riera @navdm last edited by Sep 26, 2017, 5:33 PM Sep 26, 2017, 4:22 PM

      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
      • topic:timeago_earlier,8 days
      • navdm
        navdm @GastonRiera last edited by Sep 18, 2017, 9:14 AM Sep 18, 2017, 9:14 AM

        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 Sep 26, 2017, 4:22 PM Reply Quote 0
        • GastonRiera
          Gaston Riera last edited by Sep 26, 2017, 5:33 PM Sep 16, 2017, 12:09 PM

          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 Sep 18, 2017, 9:14 AM Reply Quote 1
          • 1 / 1
          1 out of 4
          • First post
            1/4
            Last post

          Got a burning SEO question?

          Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


          Start my free trial


          Browse Questions

          Explore more categories

          • Moz Tools

            Chat with the community about the Moz tools.

          • SEO Tactics

            Discuss the SEO process with fellow marketers

          • Community

            Discuss industry events, jobs, and news!

          • Digital Marketing

            Chat about tactics outside of SEO

          • Research & Trends

            Dive into research and trends in the search industry.

          • Support

            Connect on product support and feature requests.

          • See all categories

          Related Questions

          • Hermski

            Solved hreflang href: Should Japanese URL characters be encoded

            hreflang hreflang tags japanese hreflang urls

            Hi all, I have searched in vain for a concrete answer to this question. If you're dealing with the hreflang tags yourself (i.e. don't use automation plugins etc.), is it okay if the URLs (e.g. in Japanese) remain unencrypted? Example (not encoded):
            <link rel="alternate" hreflang="ja" href="https://domain. com/エグザイルリンク/" /> The same encoded:
            <link rel="alternate" hreflang="ja" href="https://domain. com/%e3%82%a8%e3%82%b0%e3%82%b6%e3%82%a4%e3%83%ab%e3%83%aa%e3%83%b3%e3%82%af" /> When checking the unencoded tags in hreflang checkers, they don't seem to have a problem with this (they don't flag any issues). Also on other websites I see both approaches with unencoded and encoded hreflang variants. What is your opinion on this, could there be conflicts and/or is there a best practice? Thanks all

            Intermediate & Advanced SEO | Apr 5, 2023, 9:28 AM | Hermski
            0
          • moz-maddesigngroup

            HREFLANG setup for Europe (in English) + .eu domain

            We have been struggling to find answers since we launched our European website. We have the following structure: WEBSITE HUB
            https://ecosmartfire.com This works as a hub for our users. We show the url printed in our marketing materials. When someone lands in this URL, we check if we have a local store in the user's location and prompt the user to go to the right destination. The default hreflang is: LOCAL VERSIONS
            https://ecosmartfire.com/us/en/ (United States)
            https://ecosmartfire.com.au (Australia)
            https://ecosmartfire.eu (Europe)
            https://ecosmartfire.fr (France) We have no problems with United States, Australia and France. The hreflang tags look like this: EUROPE
            https://ecosmartfire.eu We have two problems in Europe:
            1. Language: the European store is available just in English
            2. No hreflang: Europe doesn't have a hreflang that covers all the countries so we had to create lots of hrelangs pointing to the same location. The hreflang tags look like this: ... and the list goes on. Do you think this is the right approach? Or should I just remove these European hreflang tags from the website code? Thanks,

            Intermediate & Advanced SEO | Apr 9, 2020, 11:06 PM | moz-maddesigngroup
            0
          • mothner

            Are HTML Sitemaps Still Effective With "Noindex, Follow"?

            A site we're working on has hundreds of thousands of inventory pages that are generally "orphaned" pages. To reach them, you need to do a lot of faceting on the search results page. They appear in our XML sitemaps as well, but I'd still consider these orphan pages. To assist with crawling and indexation, we'd like to create HTML sitemaps to link to these pages. Due to the nature (and categorization) of these products, this would mean we'll be creating thousands of individual HTML sitemap pages, which we're hesitant to put into the index. Would the sitemaps still be effective if we add a noindex, follow meta tag? Does this indicate lower quality content in some way, or will it make no difference in how search engines will handle the links therein?

            Intermediate & Advanced SEO | Oct 10, 2016, 9:43 PM | mothner
            0
          • WMCA

            XML Sitemap on another domain

            Hi, We've rebuilt our website and created a better sitemap index structure. There's a good chance that we not be able to append the XML files to existing site for technical reasons (don't get me started). I'm reaching out because I'm wondering if can we place the XML files on another website or subdomain? I know this is not best practice and probably very grey but I'm looking for alternatives. If there answer is DON'T DO IT let me know too. Thx

            Intermediate & Advanced SEO | Oct 30, 2013, 1:24 AM | WMCA
            0
          • kisen

            Urls missing from product_cat sitemap

            I'm using Yoast SEO plugin to generate XML sitemaps on my e-commerce site (woocommerce). I recently changed the category structure and now only 25 of about 75 product categories are included. Is there a way to manually include urls or what is the best way to have them all indexed in the sitemap?

            Intermediate & Advanced SEO | Jul 22, 2013, 1:11 PM | kisen
            0
          • alloydigital

            How Do I Generate a Sitemap for a Large Wordpress Site?

            Hello Everyone! I am working with a Wordpress site that is in Google news (i.e. everyday we have about 30 new URLs to add to our sitemap) The site has years of articles, resulting in about 200,000 pages on the site. Our strategy so far has been use a sitemap plugin that only generates the last few months of posts, however we want to improve our SEO and submit all the URLs in our site to search engines. The issue is the plugins we've looked at generate the sitemap on-the-fly. i.e. when you request the sitemap, the plugin then dynamically generates the sitemap. Our site is so large that even a single request for our sitemap.xml ties up tons of server resources and takes an extremely long time to generate the sitemap (if the page doesn't time out in the process). Does anyone have a solution? Thanks, Aaron

            Intermediate & Advanced SEO | Apr 30, 2013, 11:18 PM | alloydigital
            0
          • jarrett.mackay

            Xml sitemap advice for website with over 100,000 articles

            Hi, I have read numerous articles that support submitting multiple XML sitemaps for websites that have thousands of articles... in our case we have over 100,000.  So, I was thinking I should submit one sitemap for each news category. My question is how many page levels should each sitemap instruct the spiders to go?  Would it not be enough to just submit the top level URL for each category and then let the spiders follow the rest of the links organically? So, if I have 12 categories the total number of URL´s will be 12??? If this is true, how do you suggest handling or home page, where the latest articles are displayed regardless of their category... so I.E. the spiders will find l links to a given article both on the home page and in the category it belongs to.  We are using canonical tags. Thanks, Jarrett

            Intermediate & Advanced SEO | May 3, 2011, 12:53 AM | jarrett.mackay
            0
          • iAnalyst.com

            Create a new XML Sitemap for a blog subdomain?

            What would be the best way to go about this? A site just put a blog on http://blog.domain.com/ Should there be a separate XML Sitemap for that particular subdomain or should the original XML Sitemap for the main domain be sufficient? Looking forward to your responses. Thanks

            Intermediate & Advanced SEO | Apr 4, 2011, 3:16 PM | iAnalyst.com
            0

          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
          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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy

          Looks like your connection to Moz was lost, please wait while we try to reconnect.