Changed subdomain logic for production