fix subdomain support