Hide OpnForm’s public pages by redirecting users to your main website
NUXT_PUBLIC_ROOT_REDIRECT_URL
environment variable allows you to “hide” OpnForm’s public pages (landing page, integrations page, etc.) by redirecting users to your main website or any other destination when they access certain routes.
forms.yourdomain.com
) and want to:
NUXT_PUBLIC_ROOT_REDIRECT_URL
is set, OpnForm will permanently redirect (301) users visiting these routes:
/
) - The landing page/integrations
) - The integrations showcaseforms.yourdomain.com/forms/my-form
✅forms.yourdomain.com/login
✅forms.yourdomain.com/home
✅.env
file (located in the client
directory):
forms.mycompany.com
→ redirects to https://mycompany.com
forms.mycompany.com/forms/contact
→ works normally ✅forms.mycompany.com
→ redirects to https://mycompany.com/contact
/login
https://
or http://
)docker compose restart
will not reload the new environment
variable. You must use down
and up
to recreate the container.