Update subdomain handler and refactor URL constant