When redirecting HTTP to HTTPS, which URLs should be in the sitemaps?

by Ayyaz Ali Furqan   Last Updated March 12, 2018 17:04 PM

Recently I've installed SSL certificate on my website and added a 301 redirection on my website for all links. Previously my sitemap included HTTP links and almost my 5000+ pages are now indexed on Google and my sitemap includes 13,000+ HTTP links.

Now my website has SSL installed and 301 redirects. Should I add HTTPS links to the same sitemap, will it affect my indexing in any way? Or should I continue submitting HTTP links and leave worry about it because my website now has 301 redirects for the whole website. Or should I create new sitemap for my website with all HTTPS links?

Answers 1

Google says that your sitemap should only contain the version of the URLs you want indexed. So you should take all your redirecting HTTP URLs out of your sitemap and replace them with your canonical HTTPS URLs.

When you move a site to HTTPS, ranking drops are common even with 301 redirects in place. I'd recommend running both HTTP and HTTPS sites in parallel for a year and using canonical tags to point your site to the HTTPS version. That is procedure I used for my largest site and I had no problems with the HTTPS migration.

Stephen Ostermiller
Stephen Ostermiller
March 12, 2018 16:25 PM

Related Questions

404 status code and http/2

Updated February 06, 2018 16:04 PM

How does this link redirect?

Updated January 11, 2017 08:01 AM