Rewrite location header in proxy mode