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:

  1. Log in to cPanel.
  2. Go to Domains > Zone Editor.
  3. Click Manage next to your domain.
  4. Click Add Record.
  5. Set the record type to A.
  6. For the Name, enter: *
  7. For Value, enter the IP address of your server.
  8. Click Save Record.

Note: Some applications may require server-side handling for wildcards (e.g., Apache/Nginx vhosts).