How to create a wildcard subdomain in cPanel

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.

How to manage your hosting account subdomains cpanel

3) Navigate to Domains > Domains.

Click on Domains from My cPanel

4) Click on Create A New Domain.

Click on Create A New Domain - My cPanel

5) Enter your new wildcard sub-domain name. A subdomain must have a name followed by a period and your domain name. For example, if the domain is mktest.net, the wildcard sub-domain name is *.mktest.net.

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.

How to create a wildcard subdomain in cPanel

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.

Related Articles

This post is also available in: FrançaisEspañolDeutsch
Get online with our affordable web hosting

Get online with our affordable web hosting

Learn more now
HostPapa Mustache