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

Google Search Console - Which Properties Should I Add?

· 52CE 我爱测

In an automated email from Google's Search Console... 1 Add all your website versions Make sure you add separate Search Console properties for all URL variations that your site supports, including https, http, www, and non-www. W…

问题原文

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

In an automated email from Google's Search Console...

1 Add all your website versions

Make sure you add separate Search Console properties for all URL variations that your site supports, including https, http, www, and non-www.

What does "... site supports ..." mean?

I'm trying to do what Google suggests in this knowledge base article about using canonical URLs, but it isn't totally clicking in my head just yet. My end goal is that I want Google to understand my site is available at https://www.example.com/ and every other permutation is incorrect. Should I add http://www.example.com/, http://example.com/, and https://example.com/ as properties to my Google Search Console?

I think I have (correctly) set up my .htaccess file so that all naked and/or http requests will be 301'd to www. prefixed and https requests.

public_html/.htaccess

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

</IfModule>

已采纳解答

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

As Google clearly says, you should add all versions of your site as follows http://example.com http://www.example.com and the 2 https versions.

  What does "... site supports ..." mean?

Well, it means whatever URLs are supported by your site i.e. are served by your site. Google will treat each of them differently and you have to keep checking all the four to ensure that most of your traffic is moving to your canonical property i.e. https://www version in your case.

I would suggest you add all four, and periodically keep checking - Doing by practice is sometimes the best way to clear your head.

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

资料来源与适用范围

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

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

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