How Can I Set Up a Catch-All (Wildcard) Subdomain?
Summary:
A wildcard subdomain (e.g., *.yourdomain.com
) allows all undefined subdomains to point to one destination, such as your main website or an app.
Steps in cPanel:
- Log in to cPanel.
- Go to Domains > Zone Editor.
- Click Manage next to your domain.
- Click Add Record.
- Set the record type to A.
- For the Name, enter:
*
- For Value, enter the IP address of your server.
- Click Save Record.
Note: Some applications may require server-side handling for wildcards (e.g., Apache/Nginx vhosts).