I’m having some trouble with redirects. I am using NUXT/NetlifyCMS on one Netlify site and a VueCLI app on another Netlify site using a subdomain (separate Git repos). I’ve read through the docs and posts, but can’t seem to get it to work correctly.
app VueCLI (using pushState for no-hash urls):
/* /index.html 200
I am trying to redirect a couple of paths to the app subdomain but have it proxy and look like it’s the main site.
https://example.com/test/123 —> https://app.example.com/test/123
I am trying to redirect with netlify.toml on the main domain
example.com site like this:
[[redirects]] from = “/test/*” to = "https://app.example.com/test/:splat" status = 200 force = true
Using 301 works, but I don’t get the main domain proxy. With 200, it redirects and the domain stays as the main domain, except I get 404’s for manifest.json and all chunk css/js assets.
Is there a way to get this to work?
Thanks for any help!