changed url matching to map invalid paths starting with a dot to 404