Wildcard subdomains are a useful cPanel feature that allows you to direct non-existing subdomains to a specific folder on your server. They serve as a “catch-all” location so that if a user enters a subdomain URL that has yet to be created (for example, https://nothinghere.yourdomain.com), they will be directed to the content you determine rather than an error page.
How to create a wildcard subdomain in cPanel
1) Log in to your HostPapa Dashboard.
2) Click on My cPanel.
3) Navigate to Domains > Domains.
4) Click on Create A New Domain.
6) The subdomain and main domain names are created automatically in the Document Root field. This folder will be used to hold your site files for the wildcard subdomain. You can click the Document Root field to edit the folder name/path.
7) Click Submit.
Suppose someone tries to access a subdomain that doesn’t exist in your account. In that case, the requested page can still be accessed, and the content used in the wildcard subdomain root document will be served on the page. Following the previous example, the non-existing subdomain https://example.mktest.net will get redirected to https://mktest.net.
If you need help with your HostPapa account, please open a support ticket from your dashboard.