This question already has an answer here:
I am checking my website out on
Google Webmasters and I am seeing an astonishing 5000 links that could not be found by Google's Crawlers. That's normal, because my website is built in a manner that users can drop their own things, which also lead to
404 pages. Not a problem at all if I can find a workaround of course...
So my question is: what if I made a function or a mod rewrite that will check if the link exists (a post for example) and if not, it will redirect it to the home page. Is this good for
SEO? Will Google see this as 'link found'? How do I have to look at this problem?