Integration of subdomain based routing