TS-2958 Remove printf's and make redirects work for url_sig plugin