Forwarding URLs & Their Descendants - RedirectMatch & .htaccess
If you want to redirect a whole site and all descendant pages to another URL, you can put this in your .htaccess file in the root of your server:
RedirectMatch ^/ http://en.wikipedia.org/wiki/TV_Links
Took me a while to ensure not only www.blah.com and http://www.blah.com were redirected, but also blah.com and blah.com/foo/bar and so on. This technique seems to work well in these instances but I have yet to master regular expressions so if any one has any pointers on trimming the end of the URL (for example ensuring http://www.blah.com/something?glass=halfempty does not become http://www.urlforwardedto.com?glass=halfempty), I would be very greatful.