大网数据广告活动
网站运营与故障问答

Should I use HTTPS in sitemap URLs for SEO?

· 52CE 我爱测

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 searc…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-07-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。