Fixed subdomains. Added redirect to root when subdomain is invalid.