You can use wildcards with some restrictions, albeit it is not recommended:
You can use the star symbol (
*
) as a wildcard for subdomains, but it must be used in accordance with the following rules in order to properly function:
- The protocol of the URL must be
http:
orhttps:
.com.example.app://*.example.com
will not work.- The wildcard must be located in a subdomain within the hostname component.
https://*.com
will not work.- The wildcard must be located in the subdomain furthest from the root domain.
https://sub.*.example.com
will not work.- The URL must not contain more than one wildcard.
https://*.*.example.com
will not work.- A wildcard may be prefixed and/or suffixed with additional valid hostname characters.
https://prefix-*-suffix.example.com
will work.- A URL with a valid wildcard will not match a URL more than one subdomain level in place of the wildcard.
https://*.example.com
will not work withhttps://sub1.sub2.example.com
.