Skip to content

How to Create a Wildcard Subdomain in cPanel?

Last update: 08 Apr 2024

Important

Wildcard subdomains are supported by cPanel, aaPanel, and some other hosting control panels. They are not supported by hPanel. Please check with your hosting provider to confirm whether wildcard subdomains are supported.

For detailed instructions, refer to the official Namecheap guide:

Official Namecheap Guide

Configure the .env File

After creating the wildcard subdomain and adding the required DNS records, update the following values in your .env file.

If GoBiz is Installed on the Main Domain

Do not include http:// or https://.

Example:

env
SUB_DOMAIN=www
MAIN_DOMAIN=domain.com

Replace domain.com with your actual domain name.

If GoBiz is Installed on a Subdomain

If your GoBiz installation is running on a subdomain, update the values as follows:

env
SUB_DOMAIN=subdomain
MAIN_DOMAIN=domain.com

Replace:

  • subdomain with your actual subdomain.
  • domain.com with your actual domain name.

Note

Do not include http://, https://, or a trailing slash in either value.

© 2019-present NativeCode. All rights reserved.