Threads and posts don't have the forum id or name in the route, so it's not possible with a single rule.
You would likely have to add a specific rule for each thread.
my client wants close a forum, and redirect some forum sections, to another URL's. So, are theren't other way to make this? The only solution, is set specific rule for each thread?