def _match_url_start(reference, value):
    """
    Checks that the val URL starts like the ref URL.
    """
    reference_parts = reference.rstrip("/").split("/")
    value_parts = value[0:len(reference_parts)]
    return reference_parts == value_parts