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 www and helps this traffic to reach to your website. The following tutorial will guide you to enable this subdomain in the easiest ways.
- Login to your cPanel.
Go to the Domains Section
- Click on Subdomains
- Choose a name for subdomain
- Select the Root Domain
[alert]Note: Make sure that the subdomain’s Document Root is public_html.[/alert]
- Click on Create
That’s all! You have successfully created subdomain for your website.