Skip to main content

Support multiple domains and redirect only on specific ones

Since some versions we have NUXT_PUBLIC_ROOT_REDIRECT_URL which is great, until now I had been using my reverse proxy to 404 certain routes, the thing is that (as I was doing with the reverse proxy) I only want the redirection to happen on certain domains, say if I enter forms.mypublicdomain.com I want the redirection/block to be performed but if I enter opnform.mylocal.arpa I want nothing to be blocked.

Unfortunately opnform only supports one domain, entering opnform through others doesn’t fully work because we get CORS errors

1 comment

Log in to comment and vote

Comments1

  • Archie

    Team•

    Nov 6, 2025

    Hi There,

    Thank you for taking the time to share these details about your setup and how you’re managing redirects and domain handling. The way you explained the use of multiple domains, the NUXT_PUBLIC_ROOT_REDIRECT_URL, and the CORS behavior gives us helpful context about your current configuration.

    Thanks again for this valuable insight — it’s always great to understand how different setups are being used.

    Best,