And for the main domain, just do a redirection do domain.com → forum.domain.com ?
domain.com
forum.domain.com