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

How to remove old style URLs from the Google Index completely and replace them with a new style?

· 52CE 我爱测

I had previously submitted my sitemap to Google. The structure of the URLs in it is https://example.com/username The username there is a URL slug generated based on the user's name. There is also another URL associated with each …

问题原文

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

I had previously submitted my sitemap to Google. The structure of the URLs in it is https://example.com/username The username there is a URL slug generated based on the user's name. There is also another URL associated with each user https://example.com/username/branches. Google also indexed it.

I recently changed my whole website design and URL structure. The first URL https://example.com/username is same but https://example.com/username/andOtherUrlsAppendedtothis is new URL that we designed to replace the second.

Also I have almost 56,000 URLs that follows the old URL structure. How can I remove those URLs from Google index?

已采纳解答

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

If you would like to replace:

https://example.com/username/branches with https://example.com/username/andOtherUrlsAppendedtothis

Then all you need to do is set a permanent 301 redirect. Considering you got a high volume of URLs, i would recommend you to handle using the code and make sure the HTTP response is 301.

Once you do this, you will see in few weeks most of the old URL will get changed to the new one.

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

资料来源与适用范围

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

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

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