<IfModule mod_expires.c>
DirectoryIndex index.php
RewriteEngine on
RewriteBase /forum/
RewriteRule ^forum/([^/]*)$ forum/$1 [NC,L]
</IfModule>