Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC] RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.yourdomain\.com$ [NC] RewriteRule (.*) /mybb/$1 [L] I know it redirects users from BLAH.yourdomain.com to yourdomain.com/mybb/BLAH but what var is it that does this like $_GET['WHAT'] ??