Setting reverse proxy (status=200) results in 301 redirect?

I’m attempting to set up Netlify as a reverse proxy for another API, but it doesn’t seem to be working – rather than reverse-proxying, Netlify is returning a 301 redirect?

Netlify site name:

_redirects file:

❯ cat _redirects
/shengji 200
/shengji/ 200
/shengji/* 200


❯ curl -s -L -I -o /dev/null -w '%{url_effective}'

Expected output:

do you have a repo to look at?

It’s unfortunately a private repo, but there’s no netlify.toml. Let me see if I can set up a test repo which reproduces

ahh, never mind – looks like this might be my upstream returning a 301! Netlify seems to be doing its job.

1 Like