changes the algorithm of the urlParser.