I have a legacy app I am looking at moving over and have a few initial questions before I get started. I would appreciate feedback on preserving the following subdomain logic when my domain is resolved to netlify.
The current app handles subdomain requests with custom branding for each registered company.
The subdomains also drive branding inside the app.
There is a wildcard SSL cert to handle these subdomains.
There is one special (of course there is) company that cannot use the wildcard cert and has their own cert.
Assuming the legacy app will be moved to
My questions are:
- Can I have these dynamic subdomains map into the existing app with
I see examples of
* mapping to
:placeholders, can I mix & match them in one rule? Something like (not sure on ordering):
https://:company.example.com/* https://:company.app.example.com/:splat 200 https://example.com/* https://app.example.com/:splat 200
- How can I resolve the special cert from #4 above? Do I create a site with a custom domain in netlify for
special.example.comand then map this cert to it and have it used instead of the wildcard? Do I need to call out the special subdomain as a 3rd rule in
redirects? (probably before the other two)
Thanks for helping me on this,