merge host and path into one match