I want deploy nuxt site with 2 domains, I have setup multiple languages. In dist folder I do have 2 separate folders for both langugages eg en/ and pl/ . I want to point my custom domain to en and pl folder respectively.
how can I do that?
Hi, @vinayak40, have you taken a look at our language based redirect rules?
If so, do you have any questions about using them?
Something like this might work:
/* /en/:splat 302 Language=en
/* /pl/:splat 302 Language=pl
Do you want to direct specific languages two different custom domains? If so, something like this might be better:
/* https://en.example.com/en/:splat 302 Language=en
/* https://pl.example.com/pl/:splat 302 Language=pl