问题原文
原帖链接 · Drakes · CC BY-SA 3.0
Google states that they prefer HTTPS in canonical URLs:
Google prefers HTTPS pages over equivalent HTTP pages as canonical (ref)
What about the pages in sitemap.xml? Does it help SEO to use HTTPS URLs there as well?
I've searched Google and Yoast (SEO blog) but am unable to find an answer one way or the other.
社区高分解答
原帖链接 · Andrew Lott · CC BY-SA 3.0
Your sitemap should include the links you want search engines to find and index. If you're providing HTTPS canonicals then this is what should be included in the sitemap. Giving a HTTP in your sitemap and a HTTPS in your canonicals & internal links could be misleading to search engines.
What you shouldn't do is include both. sitemaps.org answers that question:
My site has both "http" and "https" versions of URLs. Do I need to list both?
with:
No. Please list only one version of a URL in your Sitemaps. Including multiple versions of URLs may result in incomplete crawling of your site.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
