Implemented url matching functionality