Set query endpoint to use local redirection