To Prevent 404 Not Found Crawl Errors In WordPress .Searches Engines like Google Bing Yandex crawling your site when you submitted sitemap or your site.While crawling your site some time search engine may get 404 Not found or Page Not found Error.This may Harm your ranking , PR etc.
You can prevent it easily. so that no 404 error shows.Just drag and copy below code to your theme 404.php.
Use plugin all 404 to Homepages wp plugin.
This code will redirect to home from content or URl which is not exist for Search engines or Visitor.
Thanks for Read.