make url_prefix be the full protocol/host/port part, and sub_url the rest