I would try this:
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.mysite\.com$
RewriteRule ^(.*)$ http://www.mysite.com/f/$1 [L,R=301]
RewriteRule ^f\/ - [L]
RewriteRule ^(.*)$ http://www.mysite.com/f/$1 [L,R=301]
This
.htaccess should redirect any hit on the
www site to the
/f directory and any other subdomain to the
/f directory of the
www site.
Jean-Luc