I recently found out that our domain has about 254 old sub domains of different types (ex: /mysite, /me.html, /mycompany/, etc). They are all return 404s! Since they are linked to by many sites, they still manage to get traffic. I want to take full advantage of it and ensure that the bad ineffective links don’t harm my domain. I definitely cannot do a mass 301 since the sub domains are all kinds of different names. One of my friends recommended that I check out Apache conf and add: "ErrorDocument 404 /index.php". He said this would surely help me out and keep those hitting dead links to the main domain at bay. I am not sure if this is the best solution to the problem. Do you guys think it is SEO friendly? Would it benefit me? Can anyone enlighten me on this? Oh, I tried doing it in Apache. Later, I added "Redirect permanent /redirect.php" in my htaccess file. I believe it’s the perfect solution.