SEO: change site address from http://www. to https://
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:
I've made permanent redirection (301) from
http://www.example.com
andhttp://example.com
tohttps://example.com
I've created 2 sitemaps:
sitemap_w.xml
- which includes links likehttp://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 likehttps://example.com/some-page1/
,https://example.com/some-page2/
etc.
and included both of them in robots.txt
In Google Search Console I've added
https://www.example.com
andhttps://example.com
. For all of existing versions (http://www
too) I've changed preferred domain to non-www.In Google Search Console I've updated robots.txt and added both sitemaps:
- for
http://www.example.com
I'veset sitemap_w.xml
- for
https://www.example.com
I'veset sitemap_s.xml
- for
This is all I've done. Should I change something? Did I forget about any significant factor?
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.
Comments
Post a Comment