I'm trying to get this to work, but its not working for me. I've got btwyx.com and http://www.btwyx.com pointing to my main directory, and that's working. I'm trying to get track.btwyx.com to go to btwyx.com/track, and that's not working. I've setup the DNS and track.btwyx.com returns a generic "future home of track.btwyx.com" page. I've adapted the .htaccess file (see below) but its not getting me to the directory I want (just the "future home of" page).
Code: Select all
<Limit GET PUT POST DELETE>
order allow,deny
allow from all
#disallows viewing the index of the directory
IndexIgnore *
RewriteEngine on
#subdomain-1.domain.com will map to the folder {root}/btwyx.com/subdomain-1
RewriteCond %{HTTP:Host} ^track\.btwyx\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/track/
RewriteRule ^(.*) /track/$1 [NC,L,NS]
</Limit>