From Dev.to
Stop redirecting every 404 to your homepage (a WordPress fix)
Many WordPress sites have a setting, either in an SEO plugin or a small redirect plugin, that sends every missing URL to the homepage. It looks tidy: users never see an error page. For search engines...
