Create following rewrite rules in each subdomain root .htaccess like this:
RewriteEngine On
RewriteRule ^forum/(.*)$ http://www.example.com/forum/$1
Notice, the /forum
has to be accessible via some URL first... w/o this, there is no way how to show the content using .htaccess