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. <loc>tag empty in sitemap, is this ok?</loc>

    <loc>tag empty in sitemap, is this ok?</loc>

    Intermediate & Advanced SEO
    4 3 1.9k
    • 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.
    • Jenny1
      Jenny1 last edited by

      Hi - our website's sitemap is pretty huge, and I'm trying to generate it with the hreflang= information in it, because we have 11 different language sites all under the .com. I used the Media Flow generator for this purpose, but it returned a lot of entries with a blank tag. Our U.S. website by far has the most pages, so an example of what I'm getting is:

      Does this look correct???? Doesn't to me but I'm unsure.

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

        Well it doesn't seem correct to me, as the location for the english page is the original URL in there it should also have an origin. That URL should be in the <loc>tag.</loc>

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

          Doesn't look right to me either. My next question would be, should I mix the sitemap for urls that have a match in other countries with those that don't? Like this:

          <url><loc>http://www.mywebsite.com</loc>
                  <lastmod>2014-11-12</lastmod>
                  <changefreq>monthly</changefreq>
                  <priority>0.8</priority></url>

          <url><loc>http://www.mywebsite.com/blah.html</loc></url>

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

            Your mistake is that you probably used relative URLs and not absolute ones (these are the ones like: http://www.domain.com/)

            So, the hreflang in sitemaps.xml for your home page should be this (please note that I put /it/ but you should put the real italian version home page, and that is valid for all URLs:

            <url><loc>http://www.domain.com/</loc></url>

            As for your second question - mixing matching and not matching URLs in the hreflang annotations - I would not suggest it.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Looking for opinions on structuring meta title tags/page title/menu title/H1
              ClaytonJ
              ClaytonJ
              1
              4
              185

            • Redirect wordpress from /%post_id%/%postname%/ to /blog/%postname%/
              Taiger
              Taiger
              0
              3
              446

            • <aside>Tag Use</aside>
              donford
              donford
              1
              4
              900

            • How important is the optional <priority>tag in an XML sitemap of your website? Can this help search engines understand the hierarchy of a website?</priority>
              Andy.Drinkwater
              Andy.Drinkwater
              0
              4
              2.2k

            • Is the <a data-uri="">link SEO friendly?</a>
              MartinPanayotov
              MartinPanayotov
              0
              3
              1.1k

            • tags inside <a>tags - is this bad?</a>
              CMC-SD
              CMC-SD
              0
              5
              6.9k

            • Use of <h2class="hidden">- SEO implications</h2class="hidden">
              AlanMosley
              AlanMosley
              0
              6
              491

            • What <h>Tag to Use For Global Navigation</h>
              perfectweb
              perfectweb
              0
              3
              2.2k

            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