Added support for subdomain routing