Hi!
I’m having trouble understanding how to rewrite to different sites like is talked about in this blog post:
Problem
Basically, when the user goes to website.com/fi, for example, i want them to be taken to the Finnish Netlify site behind the scenes (rewrite).
I thought i’d connect the website.com domain to one of the sites (lets say the swedish site) and then proxy requests under website.com/fi to the fi site (https://fi-website.netlify.app).
After reading about proxying to other services, I tried this rewrite:
netlify.toml:
[[redirects]]
from = "https://website.com/fi/*"
to = "https://fi-website.netlify.app/:splat"
status = 200
But it gives me 404 errors in the console on when i navigate to https://website.com/fi/* even though https://fi-website.netlify.app/fi works fine.
Would love some help figuring out what i’m doing wrong!
Thank you for reading!