Added support downloading from subdomains and third domains.