I’m trying to set up a proxy from our new Netlify website to our old website for a few pages that are not yet ported. However, despite using a 200 in the _redirects file, the URL in the browser changes - Netlify redirects instead of proxying.
When you assign an HTTP status code of 200 to a redirect rule, it becomes a rewrite . This means that the URL in the visitor’s address bar remains the same, while Netlify’s servers fetch the new location behind the scenes.
This can be useful for […] transitioning for legacy content.
Now all requests to /api/... will be proxied through to https://api.example.com straight from our CDN servers without an additional connection from the browser.
So what I would like to see is this (hand-typed example):
However, that wasn’t the URL that Netlify was trying to fetch - there was a trailing slash, and I had a long-forgotten .htaccess redirection rule set up to remove trailing slashes