how can I get teh var from sub-domain in this code?

Discussion in 'Apache' started by SimThePhpCoder, Dec 16, 2009.

  1. #1
    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'] ??
     
    SimThePhpCoder, Dec 16, 2009 IP