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

Google indexing shows 'Soft 404' error on home page for Angular Site

· 52CE 我爱测

We have a dynamic website built on Angular.js and node.js. The website's home page is not getting indexed on Google and gets a 'soft 404' error. Although the website is working fine and most of the pages are getting indexed, we c…

问题原文

原帖链接 · user101070 · CC BY-SA 4.0

We have a dynamic website built on Angular.js and node.js. The website's home page is not getting indexed on Google and gets a 'soft 404' error. Although the website is working fine and most of the pages are getting indexed, we come across the soft 404 issue only on the home page. We are using prerender.io for prerendering angular pages. What might cause this problem?

已采纳解答

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

Your prerender isn't working for the home page. I used the Chrome user agent switcher to change my user agent to Googlebot:

Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

Then I viewed the home page of your site. It came up blank. The source code is simply:

<html><head></head><body></body></html>

Google reports blank pages as a "soft 404" error in Google Search Console. Although a soft 404 could also indicate other problems like the page having no "Not Found" in the title.

Using prerender just for bots is not a good idea. You won't see when the prerender isn't working.

You should be able to use the Inspect Live URL feature in Google Search Console to verify this problem. You should also be testing your prerender yourself using your own crawler as part of your quality assurance.

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

资料来源与适用范围

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

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

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