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

Can't add preferred version to Google Webmasters / Search Console

· 52CE 我爱测

When I select example.com as my preferred site version like below. It gives me an error as seen in the image. The site was setup as https://example.com before Google Webmasters was added. Why doesn't it allow me to add a preferre…

问题原文

原帖链接 · Rob · CC BY-SA 3.0

When I select example.com as my preferred site version like below. It gives me an error as seen in the image. The site was setup as https://example.com before Google Webmasters was added.

  1. Why doesn't it allow me to add a preferred domain to the verified https site?
  2. Why do I need to verify http://www.example.com to prove I own the other 4 versions (http://www. + http:// + https://www. + https://)? It doesn't make sense.
  3. Do I really need to change the nginx config file to allow traffic to all 4 versions of the domain and authenticate them all with google webmasters to use just the https non www version?

已采纳解答

原帖链接 · Anaksunaman · CC BY-SA 3.0

Please forgive me if I missed any part of your question.

Assuming you only have a single HTTPS version of example.com (without the www), simply select "Don't set a preferred domain".

Why doesn't it allow me to add a preferred domain to the verified https site?

Preferred domain settings are strictly for discerning how links are treated by Google assuming you have www and non-www prefixed versions of your site (HTTP or HTTPS).

Why do I need to verify http://www.example.com to prove I own [all 4] versions (http://www. + http:// + https://www. + https://)? It doesn't make sense.

If you don't have one or more of these given addresses, you shouldn't have to.

For every version you do have, it needs to be verified with Google if you want that version created as a property in the Google Search Console or to use a Preferred Domain (which implies two HTTP or HTTPS versions of the same site already available as properties).

Google wants verification of the properties created because (theoretically) all 4 of these addresses can lead to different content or sites (which may or may not potentially be under your control).

Do I really need to change the nginx config file to allow traffic to all 4 versions of the domain and authenticate them all with google webmasters to use just the https non www version?

No.

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

资料来源与适用范围

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

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

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