When you want to redirect all traffic coming on your website regardless of what subdomain is bringing that traffic, you can use wildcard subdomains to redirect that traffic. It also covers some mistypes like non www or just ww and helps this traffic to reach to your website.
You can enable this subdomain very easily through the following steps.
- You will need to Login into your cPanel.
- Find the Domains
- Click on >> Subdomains
- Choose the name for subdomain
- Select the Root Domain
- Just make sure that the subdomain’s Document Root is public_html.
- Click on >> Create
Congratulations! You have successfully created subdomain for your website.
Note: Just make sure that the subdomain’s Document Root is public_html.