fixed the redirect for subdomains to top level domains