Rewrite gives 500

I’m trying to host multiple react apps under same domain but at different paths

Let’s consider the following site

Site1: https://site1.netlify.app/ - MAIN SITE
Site2: https://site2.netlify.app/ - TO HOST UNDER A PATH /site2

So
https://site1.netlify.app/site2/something —> https://site2.netlify.app/something

I used the following rewrite in the site1 _redirects file

/site2/* https://site2.netlify.app/:splat 200!
/*  /index.html  200

The above works for Netlify related sites, I mean *.netlify.app but I tried the same with my own custom sub domain it throws 500

I would to understand the reason, am I doing something wrong or is it not allowed?


Few of the Netlify request ids are:

01FSF0H6MEBEP7WKASV0DJCWMZ
01FSEZVWSVKK9NY2VP2Z4XDZY0
01FSF0N4VZXEJM1KFRCPHXR3JD
01FSF0QPQ74BPK97KJNVWNHDYE

My bad! It seems I had sites in multiple teams, that’s the reason.