I found this online, but it's still not working:
RewriteCond %{HTTP_HOST} !^www\.mysite\.com
RewriteCond %{HTTP_HOST} ([^.]+)\.browse\.mysite\.com [NC]
RewriteRule ^(.*)$
http://www.mysite.com/browse/?loc=%1 [L,R]
It's supposed to work like this: If somebody goes to
http://subdirectory.browse.mysite.com they are redirected to
http://www.mysite.com/browse/?loc=subdirectory
Do I need to do something special to turn wild cards on for sub domains?