Subdomain & multi-level subdomains
Squash supports a special syntax for dealing with any level of subdomains. This allows your application subdomains to still work with SSL/HTTPS without the need of separate SSL certificates. If you are curious, Squash also supports custom domains & custom/Free SSL.
Here is how it works: Squash translates any double dashes (--)
within the hostname and converts them to subdomains when passing the request to the application’s backend. We also support multiple levels of subdomains.
Example:
https://bookstore--cartv3-i3xg7.squash.io
When Squash receives this request it will translate it to the following URL when passing it to the backend – everything is transparent for the end user:
https://bookstore.cartv3-i3xg7.squash.io
Multi-level subdomains
The same discussed above works for any level of subdomains. For instance, the URL below is supported:
https://acme--bookstore--cartv3-i3xg7.squash.io
and Squash will pass the following to the application’s backend:
https://acme.bookstore.cartv3-i3xg7.squash.io