Use parse_url to store only hostname & scheme