I am hosting an app that let’s say is available at domain.com and I want to automatically redirect sub domains not defined by other apps to domain.com. I’ve already set up the CNAME records to do this, and have added *.domain.com as a custom domain along with domain.com to my app.
And it works like this: if I go to sub.domain.com I get to see the domain.com app, but the URL does not change to domain.com, it stays as sub.domain.com. How can I actually get sub.domain.com to redirect to domain.com?
I’m hoping my explanation is clear enough. Thank you for any suggestions!