How to add a wildcard DNS record?

Wildcard subdomains are useful when you wish to redirect all visitors to your website regardless of what subdomain they access your website through. This is also useful when someone mistypes www for example and writes

In other words, with wildcard subdomains it won't matter whether someone accesses your site through or

WildCard subdomains are also handy when configuring subdomain multisite applications such as WordPress.

The easiest way to enable wildcard subdomains is to create a subdomain * in cPanel -> Subdomains.

You should make sure that the subdomain's document root directory is matching the one of

For example the public_html folder is the document root of your primary domain. This means that if you wish to create a wildcard subdomain for your primary domain name you need to specify the public_html directory as a document root during the subdomain creation.

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!