My site was indexed as http://www.example.com.

Purpose: I would like to make a change to https://example.com

Question: Can you please give me a hint if I'm doing this in the best possible way?

What I've done:

  1. I've made permanent redirection (301) from http://www.example.com and http://example.com to https://example.com

  2. I've created 2 sitemaps:

    • sitemap_w.xml - which includes links like http://www.example.com/some-page1/, http://www.example.com/some-page2/ etc. - I'm not sure if I should use https here too?

    • sitemap_s.xml - which includes links like https://example.com/some-page1/, https://example.com/some-page2/ etc.

and included both of them in robots.txt

  1. In Google Search Console I've added https://www.example.com and https://example.com. For all of existing versions (http://www too) I've changed preferred domain to non-www.

  2. In Google Search Console I've updated robots.txt and added both sitemaps:

    • for http://www.example.com I've set sitemap_w.xml
    • for https://www.example.com I've set sitemap_s.xml

This is all I've done. Should I change something? Did I forget about any significant factor?

  • You shouldn't have any redirecing URLs in your sitemap. sitemap_w.xml is completely unneeded and probably harmful. Commented Oct 8, 2016 at 12:20
  • @StephenOstermiller what about this opinion? productforums.google.com/forum/m/#!msg/webmasters/9uXVsQ18WQk/…
    – suz
    Commented Oct 8, 2016 at 12:41
  • Google doesn't need a sitemap to find the URLs in their old location -- it already knows about those. Just make sure it can find the new ones. Commented Oct 8, 2016 at 14:10

1 Answer 1


When you migrate your site from http to HTTPS, then make sure, you do 301 redirection to all files even for XML sitemap.

By giving two sitemaps, google just waste their crawling time, and it may cause some little delay to index your all webpages.

  • Thanks! What about this opinion productforums.google.com/forum/m/#!msg/webmasters/9uXVsQ18WQk/… ? Is it totally wrong?
    – suz
    Commented Oct 8, 2016 at 12:42
  • The answer given by Google employee, but as far I know, if you provide two sitemap, then Googlebot will crawl both URL's, and there are some limitation to crawling webpage, for example they don't crawl 5000 URL(p.s. Just a number) at a time, if you give them two sitemap to crawl, then it may not crawl all the webpages in same day, they will come back next day and start crawling remaining URL's. And Another thing is that Googlebot check sitemap only to discover new pages, if they see old url, then they may not crawl. Google often crawl old webpages from their index database.
    – Goyllo
    Commented Oct 8, 2016 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.