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

Indexed pages both www and non-www

· 52CE 我爱测

I am working on a website redesign. When I uploaded my code in production, I didn't know I must make a redirect between www and non-www URL. Since I have corrected that problem, Google has indexed both www and non-www URLs. How c…

问题原文

原帖链接 · Amanite Laurine · CC BY-SA 3.0

I am working on a website redesign. When I uploaded my code in production, I didn't know I must make a redirect between www and non-www URL.

Since I have corrected that problem, Google has indexed both www and non-www URLs.

How can I tell google to unindex all www URLs and only reindex non-www URLs?

已采纳解答

原帖链接 · Ronen Teva · CC BY-SA 3.0

As long as you've configured the redirect properly:

  1. You don't need to worry about the extra indexed pages, as there are no downsides for you.
  2. Google will slowly start removing the redirected pages. Depends on the traffic, this can take long months, from personal experience.
  3. As Edward suggested, you may use Google Webmaster Tools to set your preferred domain.

Make sure the redirect pages are 301 (permanent) and not 302 (temporary), you might want to use a redirect checker to make sure.

Good luck with the new design!

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

资料来源与适用范围

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

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

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