Better tip. You find what pages sites are linking to, and instead of redirecting to your homepage you add the actual pages. That's going to look a lot more natural to Google then redirecting everything to homepage.
I agree about mixing it up a bit. Another wp plugin I use is ?404 to start? - I?ve found this plugin to be very straightforward to use.Thanks for the tip Tony!Although I just use Link Juice Keeper. I think it is a good a idea to use both, to mix it up a bit. Just to be safe![]()
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>
There's several free plugins to do this as well. I think several of them may offer more dynamic features such as 404 request logging. Personally, I've found that this one does the trick: "404 to 301".
It's a very light plugin as well, that simply injects a few lines of code to create a 301 redirection for any 404 requests, which will redirect to a single url that you specify.