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

Wrong URL showing up in Google search results resulting in 404 error after migrating from blogger to WordPress

· 52CE 我爱测

I have ported a blogger blog to a WordPress blog. I have switched the DNS to point to the new WordPress blog. The WordPress blog is up and running fine. I have created sitemaps for the pages on this blog and have added them to Go…

问题原文

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

I have ported a blogger blog to a WordPress blog. I have switched the DNS to point to the new WordPress blog. The WordPress blog is up and running fine. I have created sitemaps for the pages on this blog and have added them to Google Webmaster Tools.

Now when I take the title of any blog post and enter the words from it into Google:

understanding getting past cognitive limitations decisions makers

Google returns the incorrect URL to me in the search results:

/2016/03/understanding-and-getting-past.html

Instead of

/2016/03/understanding-getting-past-cognitive-limitations-decisions-makers/

I'm getting so many 404 errors because of such bad URLs. This happens with every URL in the site map, even though in the site map has the correct, fully formed URLs.

What is going on here and how do I fix it?

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 3.0

The problem is that Google isn't going to forget about the URLs that your blog used when it was hosted on Blogger. When you switched to WordPress each blog post got a new URL. Now when somebody tries to visit the page on its old URL, they get a 404 error.

To fix this you need to implement "301 Permanent" redirects between each old URL and its corresponding new URL.

Without the redirects,Google will eventually pull all these 404 pages from its index. That will be good in so far as the 404 errors will stop, but Google may not always replace the page with its new URL. The new URLs will eventually get indexed, but they won't rank as well.

Even if Google does pull the old URLs from the search index, it will still have Googlebot come visit them.

Without the redirects, any inbound links other than to the home page will also be broken. The redirects are important for any visitors that come to your site through deep links as well.

Here is a guide for migrating from Blogger to WordPress. It has an entire section on setting up the redirects including code that can be pasted into functions.php in WordPress that will handle the redirects.

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

资料来源与适用范围

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

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

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