Put this in .htaccess of the root directory of your site
Quote:
RewriteRule ^forums/(.*) http\\forums.domain\.com$1 [NC,R=301]
|
Then put a .htaccess file in the subdomain root and change you rules to be something like this
Quote:
RewriteRule ^(.+)\.php\?f=([0-9])$ /forumdisplay.php?f=$2 [R=301,nc]
|
You might have to tweak the rules, but, this does work. I migrated a site from directory to subdomain and this is working for me.