match_url method