Wildcard subdomains let you redirect every subdomain of a domain with a single source. That's useful when a domain has many dynamic or user-generated subdomains, such as user1.example.com and user2.example.com. Available from the Pro plan and up.
Setting up a wildcard redirect
Use an asterisk as the subdomain in your source:
*.example.com
This matches all subdomains of example.com.
Want to use the subdomain in the destination? Destination variables such as {domain.subdomain} carry it over, and dynamic destinations can route on it.
DNS configuration
- Add an A or CNAME record for
*.example.compointing at redirect.pizza. - Add an NS record for
_acme-challenge.example.comas shown under Hostnames. Wildcard SSL certificates can only be issued through a DNS challenge, and this record lets us complete that challenge for you.
Good to know
- SSL: we issue a wildcard certificate through DNS-based validation, so every subdomain works over HTTPS.
- Billing: a wildcard source counts as 10 source hostnames towards your plan limit.
For an in-depth look at when wildcard redirects make sense and how the SSL handling works, read Wildcard redirects: when and how to use them. Not working after the DNS change? See Troubleshooting new redirects.