I found that there are 1000s of 404 pages from my domain in the google webmaster . Most of those pages are invalid. I don't know how did the google find those pages on my websites. Also, those pages are not there in my sitemap. Anyway, I want to redirect all those invalid pages to either homepage or a designated page e.g my404.html. How can I do that?