Rewriting url parser