My blog is in a subdirectory of my main site.
404 errors for the main site are redirected to the blog 404 error page.
1. How do I redirect 404 errors for main site to the homepage of my main site?
2. How do I redirect 404 errors of the blog to the home page of my blog?