improved get_url_from_special_domain