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. Should sitemap include https pages?

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.

Should sitemap include https pages?

Intermediate & Advanced SEO
2
7
6.6k
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.
  • G.Anderson
    G.Anderson last edited by Nov 22, 2013, 3:29 PM

    Hi guys,

    Trying to figure out some onsite issues I've been having. Would appreciate any feedback on the following 2 questions:

    My homepage (http://mysite.com) is a 301 redirect to https://mysite.com, which is under SSL. Only 2 pages of my site are https, the rest are http.

    1. Should the directory of my sitemap be https://mysite.com/sitemap.xml or should it be kept with http (even though the redirected homepage is to https)?

    2. Should my sitemap include the https pages (only 2 pages) as well as the http?

    Thanks,

    G

    1 Reply Last reply Reply Quote 0
    • G.Anderson
      G.Anderson @FedeEinhorn last edited by Nov 29, 2013, 3:45 PM Nov 29, 2013, 3:45 PM

      Hi Frederico,

      On the google Sitemaps Errors help page, they include the following information:

      "You should also check that the URLs all begin with the same domain as your Sitemap location. For instance, if your Sitemap is listed under http://www.example.com/sitemap.xml, the following URLs are not valid for that Sitemap:

      • http://www.google.com — it's in the google.com domain rather than the example.com domain
      • http://example.com/ — it's missing the initial www
      • www.example.com/ — it's missing the protocol (http), and will generate an Invalid URL warning
      • https://www.example.com/ — it's using a different protocol (https rather than http)

      Any URLs in the Sitemap that are not denied are processed normally."

      This leads me to understand that Google don't want you to put http urls in an https sitemap and also vice-versa. What makes you believe otherwise??

      Hoping to get to the bottom of this - thanks for the ongoing feedback

      1 Reply Last reply Reply Quote 0
      • FedeEinhorn
        FedeEinhorn @G.Anderson last edited by Nov 28, 2013, 1:18 PM Nov 28, 2013, 1:18 PM

        Those suggesting not to add the SSL pages to the HTTP sitemap are using data back from 2007, when indeed Google showed an error on those sitemaps listing both HTTP and HTTPS pages as they were being recognized as different domains. Those days are long gone. Google had evolved and can now handle sitemaps with both HTTP and HTTPS pages just fine.

        G.Anderson 1 Reply Last reply Nov 29, 2013, 3:45 PM Reply Quote 0
        • G.Anderson
          G.Anderson @FedeEinhorn last edited by Nov 28, 2013, 12:39 PM Nov 28, 2013, 12:39 PM

          Thanks for the input Frederico. I've been receiving various different answers to this question.

          Most responses have said that we should submit 2 sitemaps: 1 sitemap listed under http that only includes the http pages of the site (which means we wouldn't include our homepage since it's under https!!!).

          And 1 sitemap listed on the https version which only includes the https pages (which is only 2 pages!).

          To be honest, I still don't know what to do here. Really frustrating that there is no clear cut answer to our situation, which I can't believe is even that unique.

          FedeEinhorn 1 Reply Last reply Nov 28, 2013, 1:18 PM Reply Quote 0
          • FedeEinhorn
            FedeEinhorn @G.Anderson last edited by Nov 22, 2013, 6:45 PM Nov 22, 2013, 6:45 PM

            G,

            It wouldn't do any difference to serve the sitemap over HTTP or HTTPS. As for the http and https pages within the same sitemap, it isn't a problem either.

            The only reason I can find for creating multiple sitemaps is for HTML pages, images or videos that do require separate sitemaps.

            Does you site uses PHP? If yes, I suggest you test xml-sitemaps.com and it will create the full sitemap for you. If you have a dynamic site, then I suggest getting their commercial version. I've been using it for over 7 years I think and I always get a copy for each site I create. And they offer lots of extras in case you need them (news sitemaps, etc).

            G.Anderson 1 Reply Last reply Nov 28, 2013, 12:39 PM Reply Quote 0
            • G.Anderson
              G.Anderson @FedeEinhorn last edited by Nov 22, 2013, 3:47 PM Nov 22, 2013, 3:47 PM

              Hey Federico,

              Thanks again for the insight - much appreciated.

              So there's no problem for us to create a sitemap that has the https homepage and then the rest of the pages in http? From reading previous Q&As on this topic it seems as though people felt you shouldn't have https and http pages under the same sitemap - I am a novice here so that's why I'm just looking for advice.

              Is there any reason why we would need to have the two sitemaps available - as in, why wouldn't we just remove the old http sitemap (that didn't include the https homepage) and just go with the https homepage sitemap?

              I just wanted to make sure I understood your response before we take action.

              Cheers,

              -G

              FedeEinhorn 1 Reply Last reply Nov 22, 2013, 6:45 PM Reply Quote 0
              • FedeEinhorn
                FedeEinhorn last edited by Nov 22, 2013, 3:34 PM Nov 22, 2013, 3:34 PM

                Hey G!

                You can serve your sitemap in both versions, that won't be any problem and won't trigger the duplicate content issue. So you are safe both ways.

                As for the second question: Yes, you should, unless you don't want your pages indexed (any HTTP or HTTPS). I think I saw your site before, and if I remember correctly you had your homepage and login script under SSL, right? Then you should definitely include your homepage in the sitemap but you can leave the login script file out as you don't need that indexed nor google will index it either.

                Once you have your sitemap ready, consider including a path in the robots file, like this:

                User-agent: *
                Sitemap: http://[your website address here]/sitemap.xml

                Hope that helps!

                G.Anderson 1 Reply Last reply Nov 22, 2013, 3:47 PM Reply Quote 1
                • 1 / 1
                1 out of 7
                • First post
                  1/7
                  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

                • lcourse

                  How long after https migration that google shows in search console new sitemap being indexed?

                  We migrated 4 days ago to https and followed best practices..
                  In search console now still 80% of our sitemaps appear as "pending" and among those sitemaps that were processed only less than 1% of submitted pages appear as indexed? Is this normal ?
                  How long does it take for google to index pages from sitemap? 
                  Before https migration nearly all our pages were indexed and I see in the crawler stats that google has crawled a number of pages each day after migration that corresponds to number of submitted pages in sitemap. Sitemap and crawler stats show no errors.

                  Intermediate & Advanced SEO | Sep 27, 2017, 7:40 PM | lcourse
                  0
                • admiral99

                  Should I use https schema markup after http-https migration?

                  Dear Moz community, Noticed that several groups of websites after HTTP -> HTTPS migration update their schema markup from, example : {
                  "@context": "http://schema.org",
                  "@type": "WebSite",
                  "name": "Your WebSite Name",
                  "alternateName": "An alternative name for your WebSite",
                  "url": "http://www.your-site.com"
                  } becomes {
                  "@context": "https://schema.org",
                  "@type": "WebSite",
                  "name": "Your WebSite Name",
                  "alternateName": "An alternative name for your WebSite",
                  "url": "https://www.example.com"
                  } Interesting to know, because Moz website is on https protocol but uses http version of markup. Looking forward for answers 🙂

                  Intermediate & Advanced SEO | Dec 19, 2016, 2:25 PM | admiral99
                  0
                • TrueluxGroup

                  Multiple pages optimised for the same keywords but pages are functionally different and visually different

                  Hi MOZ community! We're wondering what the implications would be on organic ranking by having 2 pages, which have quite different functionality were optimised for the same keywords. So, for example, one of the pages in question is
                  https://www.whichledlight.com/categories/led-spotlights
                  and the other page is
                  https://www.whichledlight.com/t/led-spotlights both of these pages are basically geared towards the keyword led spotlights the first link essentially shows the options for led spotlights, the different kind of fittings available, and the second link is a product search / results page for all products that are spotlights. We're wondering what the implications of this could be, as we are currently looking to improve the ranking for the site particularly for this keyword. Is this even safe to do? Especially since we're at the bottom of the hill of climbing the ranking ladder of this keyword. Give us a shout if you want any more detail on this to answer more easily 🙂

                  Intermediate & Advanced SEO | Aug 30, 2018, 9:39 AM | TrueluxGroup
                  0
                • EcommerceSite

                  Should pages with rel="canonical" be put in a sitemap?

                  I am working on an ecommerce site and I am going to add different views to the category pages. The views will all have different urls so I would like to add the rel="canonical" tag to them. Should I still add these pages to the sitemap?

                  Intermediate & Advanced SEO | Feb 9, 2015, 5:32 PM | EcommerceSite
                  0
                • TjeerdvZ

                  Hreflang and paginated page

                  Hi, I can not seem to find good documentation about the use of hreflang and paginated page when using rel=next , rel=prev
                  Does any know where to find decent documentatio?, I could only find documentation about pagination and hreflang when using canonicals on the paginated page. I have doubts on what is the best option: The way tripadvisor does it:
                  http://www.tripadvisor.nl/Hotels-g187139-oa390-Corsica-Hotels.html
                  Each paginated page is referring to it's hreflang paginated page, for example: So should the hreflang refer to the pagined specific page or should it refer to the "1st" page? in this case:
                  http://www.tripadvisor.nl/Hotels-g187139-Corsica-Hotels.html Looking foward to your suggestions.

                  Intermediate & Advanced SEO | Dec 10, 2014, 2:14 PM | TjeerdvZ
                  0
                • eugene_bgb

                  Hreflang in vs. sitemap?

                  Hi all, I decided to identify alternate language pages of my site via sitemap to save our development team some time.  I also like the idea of having leaner markup. However, my site has many alternate language and country page variations, so after creating a sitemap that includes mostly tier 1 and tier 2 level URLs, i now have a sitemap file that's 17mb.  I did a couple google searches to see is sitemap file size can ever be an issue and found a discussion or two that suggested keeping the size small and a really old article that recommended keeping it < 10mb. Does the sitemap file size matter?  GWT has verified the sitemap and appears to be indexing the URLs fine. Are there any particular benefits to specifying alternate versions of a URL in vs. sitemap? Thanks, -Eugene

                  Intermediate & Advanced SEO | Nov 10, 2014, 12:26 AM | eugene_bgb
                  0
                • AshShep1

                  Should my back links go to home page or internal pages

                  Right now we rank on page 2 for many KWs, so should i now focus my attention on getting links to my home page to build domain authority or continue to direct links to the internal pages for specific KWs? I am about to write some articles for several good ranking sites and want to know whether to link my company name (same as domain name) or KW to the home page or use individual KWs to the internal pages - I am only allowed one link per article to my site. Thanks Ash

                  Intermediate & Advanced SEO | Aug 7, 2014, 11:25 AM | AshShep1
                  0
                • jamesjk24

                  Sitemap in SERPS

                  What's up guys, Having some troubles with SERP rankings. My sitemap (navigation) is appearing instead of my actual keywords. I have tried a few methods to fix this; setting a preferred domain, using a 301 redirects, deleting out of date pages via Google webmaster tools. Nothing seems to work. My next step was to refresh the cache for my entire site - does anyone know how to do this? Can't see any tools... Any help would be great. Cheers, Jon.

                  Intermediate & Advanced SEO | Sep 21, 2011, 2:26 AM | jamesjk24
                  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.