I have 2 sites hosted via netlify. I want to know how can I apply redirect proxy in such way that when I navigate from site 1 (ex: site1.com/subpath1/subpath2) to another netlify site it renders site2 root but the url is still site1.com/subpath1/subpath2
Im able to achieve the first part via the below redirect rule [[redirects]]
** from = “/subpath1/subpath2/*”**
** to = “site2.com/:splat”**
** status = 200**
** force = true**
This is likely due to the <a> elements on the second site. If they are href="/path" instead of href="path" or href="./path" they are relative to the site root rather than the current path/page.
Super valuable input. Thank you very much. This is clear for cases where the site2 is under our control. How do I manage the same in cases where I might not have direct access to site2.