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

Cannot verify the www version of my website in Google Search Console despite having HTML file

· 52CE 我爱测

I am trying to verify my website with Google webmaster tools. I have uploaded the Google html file to my webhosting for example.com and that site now says that it is verified. But the www.example.com version is still saying "not …

问题原文

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

I am trying to verify my website with Google webmaster tools. I have uploaded the Google html file to my webhosting for example.com and that site now says that it is verified.

But the www.example.com version is still saying "not verified".

Google says this: "You may need to verify ownership of both the www and non-www versions of your domain. Because setting a preferred domain impacts both crawling and indexing, we need to ensure that you own both versions. Typically, both versions point to the same physical location, but this is not always the case. Generally, once you have verified one version of the domain, we can easily verify the other using the original verification method. However, if you've removed the file, meta tag, or DNS record, you'll need to repeat the verification steps."

I'm stuck - I'm not sure why the www version is not verified.

已采纳解答

原帖链接 · Michael d · CC BY-SA 3.0

I've had this happen to me as well. I think multiple times actually. I had a site setup as the preferred version of http://example.com. When I tried to switch to http://www.example.com it wouldn't verify ownership. I had the txt file in the root directory but it wouldn't accept it.

I found that I had to delete my site from search console. I then added it again with the www version and search console accepted the verification. The site that I deleted in search console was new so losing the data wasn't that problematic for me. I'm not sure if deletion and reentering causes loss of data or if the data is retained. You may want to look into that first if you decide that this is your best solution.

I think this error is likely due to some kind of a glitch on the webmaster tools' system.

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

资料来源与适用范围

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

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

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