change url scheme from query strings to routes