Proxy Rewrite Netlify function from one domain to other

I am trying to figure out how to proxy rewrite netlify functions from a domain to an other.

Lets say i have a public domain called
At that domain theres som subpaths like /site1, /site2, /site3 ( that all have their own sites / applications.
The current rewrite settings on the top domain is:
from = “/site1/*”
to = “
status = 200
force = true

Everything works as expected and the “shadow” domain can be accessed from the top domain.
But when i request a netlify function from the top domain i m not getting any result.
I get a 200 respons but the body is empty.

The example would be: → Works → Does not work → Works

The reason i have this setup is to have a top domain and run multiple sub applications/languages beneath it, and i dont know why the rewrite proxy for the netlify functions doesnt work.

Hey there, @raketwebbyra :wave:

Welcome to the Netlify Forums :netliconfetti: Thanks so much for reaching out.

It looks like this thread has been a bit quiet since you posted. Are you still encountering this issue? If you are, please share the following:

  1. Your Netlify site names (both working and non-working)
  2. Any additional debugging steps you have taken since posting


I have setup a live example.
This is the main site:
This is the subsite:

On the main site there is a redirect config like this in the netlify.toml:
from = “/test/*”
to = “
status = 200
force = true

And the url: works fine
As well as: &

But not the proxy rewrite to the netlify function: or

Hey @raketwebbyra,
Looks like you may be running into the same issue as over here → Proxying from one app to another - #8 by luke Would you mind trying Luke’s workaround and letting us know how it goes? If that turns out to be the problem, I’ll add this thread to our internal tracking issue for the bug.