Mobile app version of vmapp.org
Login or Join
Cugini213

: Should I redirect 301 sitemap.xml from http to https after SSL switch? Specific to sitemap.xml, should I 301 redirect http://example.com/sitemap.xml to https://example.com/sitemap.xml? I switched

@Cugini213

Posted in: #301Redirect #Google #Https #Seo

Specific to sitemap.xml, should I 301 redirect
example.com/sitemap.xml to example.com/sitemap.xml? I switched 2 weeks ago to ssl (from http to https) and scoured this site to make sure I did things correctly. However, I only see index drops in my Google webmaster account. Nothing improving! So I'm thinking maybe this is a reason?

I thought of one more question as well, should all URLs in both sitemap files point to https, or should we leave the non SSL one point to non SSL URLs, and simply 301 redirect those URLs when users land on them?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cugini213

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jamie184

Existing Http Sitemap:

This sitemap should continue to exist for time all your search results are crawled as https and even if this also redirects to www.example.com/sitemap.xml, then also it should contain all http links

Reason being : the crawler when try to crawl this sitemap will crawl all existing urls and get an indication that these all have been permanently moved to https. It will update its indexes for old urls and will pass authority of the old links to new https links. If you don't add these, then crawler will get this indication only when it try to check for old http urls and will then take more time to reflect and might hurt your existing rankings a bit. The above mentioned reason lower that effect

New sitemap for https :

Https becomes altogether a new property for the crawler. Its better to create a new link for this https sitemap like www.example.com/sitemap-new.xml or whatever you want to create. You can update this / submit this via webmaster.

Place all your https links here. Crawler will start crawling links from here and getting an indication of old links migration from http sitemap.

This ideally takes around 20-30 days based on the crawler visit frequency on your site, for almost all links to index as https. After that you can remove your old sitemap if you want.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme