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?
sitemap_w.xml
is completely unneeded and probably harmful.