问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
