Let's say I have a site X.com. Now, on that site there is a forum, which is on a subdomain (forum.x.com). Now, that forum has thousands of pages, but they are all going to be taken down. Is there a way to do a 301 redirect of ALL pages that are under forum.x.com/* ? It would be too much to do it one by one.

How about the code for redirect everything from x.com/something/* ?

Thanks in advance,