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