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