fixed invalid subdomain redirection