added url splitting for subdomains