Follow these steps to setup a subdomain for your website in Cpanel.
1. Login to your web host’s control panel. There is a good chance that your web host is probably using Cpanel.
2. After you login successful. You should see the following area inside Cpanel. Click on “Subdomains” to continue to the creation of a subdomain.
3. Now you should see a page that looks like the following:
Enter the desired subdomain name and what directory that subdomain should point to. Click on “Create” to create the subdomain.