Tuesday, Mar 28, 2017
When you bind your Aerobatic website to a custom domain (Pro Plan required), you can enter an asterisk in the sub-domain field. This acts as a wildcard meaning that any sub-domain will resolve to the same physical website.
Imagine an HTML5 gaming site at the fictional domain aerogames.play. This technique would allow each game to run on a different sub-domain such as:
window.location.hostname and loading the correct game into the DOM. Even though it renders to the end user as distinct experiences, it’s all the same physical site, so you only pay for a single Aerobatic subscription.
In your DNS console you’ll need to either setup a separate CNAME for each game
chess, etc., or even better, create a single wildcard CNAME. The advantages of the wildcard become even more apparent when deploying to a non-production stage such as preview. That will make the app available at these URLs:
You get all this flexibility with only a single website to maintain and deploy. Pretty cool, right? 😁
You can have your first website live in 30 seconds!Get Started for Free