I do not believe .htaccess files can redirect to a separate directory in that manner. You would need a separate .htaccess and some type of redirect (in the META headers or a Javascript) in the /forum directory.

You could also put your UBB cgi files in a directory named "forum" (with proper read/write/execute permissions) and then use a .htaccess file to get the desired result.

-jlb