Perform routing based on subdomains