Matching pathname, search and hash separately, noMatch method to process errors.