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

Redirect from 404 page to homepage after some seconds and SEO impact

· 52CE 我爱测

I've read a lot about that is bad to redirect 404 page to the homepage (soft 404). But I want to know if it's a good idea to redirect, after some seconds, the user from the 404 page (with the error message and the correct status …

问题原文

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

I've read a lot about that is bad to redirect 404 page to the homepage (soft 404). But I want to know if it's a good idea to redirect, after some seconds, the user from the 404 page (with the error message and the correct status code) to the home page. Is that bad for SEO? I would do that with JavaScript or HTML refresh tag.

已采纳解答

原帖链接 · Matthew Edgar · CC BY-SA 3.0

It isn't necessarily bad for SEO. You want to be careful of "sneaky redirects" (see https://support.google.com/webmasters/answer/2721217?hl=en), but this type of behavior should probably fall in acceptable territory.

Honestly, from an SEO perspective, you'd be better off redirecting the broken URL to a legit page on your site via a 301 server side redirect. That way you aren't in sneaky territory at all and that way, too, you are helping get people who click on a search result to a better page on your site.

All that said, the bigger concern in doing this is not anything to do with search, it is that this type of redirect can be particularly bad for users. In my research, these types of error pages that have some kind of automated redirect actually cause a considerably higher exit rate after people encounter the error. You are usually much better off leaving people on the error page and making the sure the error page contains links to other pages they want to go to.

The ideal answer for users is to implement a server side redirect so that people just go to a relevant, working, non-error page on your site and never actually see an error. This ends up being good for SEO too. So, if it were me, I'd recommend focusing your time on implementing redirects instead of the JS redirect off the 404.

Here is a link to more of the research I've done around this and the impact on users if you are interested (there is a slide deck and video at the end that may be easier to go through): http://www.matthewedgar.net/handle-errors-on-your-website/

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

资料来源与适用范围

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

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

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