replace all terms in the url