What Is A Subdomain?
A subdomain is a smaller part of our larger domain. Let’s understand this concept with an example. Here www.techrepaper.com is our website which is a complete level domain, it’s containing 3 parts which are 1. www, 2 techrepaper, 3 .com.
We will understand the concept from 3rd part to 1st part.
.Com : The part which appears right to the last dot(.) in our website is called Top Level Domain(TLD). This is also called domain extensions, in our example .com is TLD, There are several types of TLD’s like .net, .org, .gov.
Let’s get into our main topic which is subdomain.
www: The part which comes before the first dot(.) is called a Sub Domain. We don’t really need to use this www, we can replace it with any word like blog, store, offers.
Why we need to create a subdomain?
A subdomain is needed when we want to work on different niches in the same website. Suppose our website is related to technology and now I want to publish news related to technology and mix of some other categories. Then I can create a subdomain like news.techrepaper.com without going for a new domain.
How we can create a subdomain and install wordpress onit?
Now I would like to run the same website in two different languages. My main website will be on English and a subdomain in Telugu language. So, I need to create a subdomain called telugu.techrepaper.com
Please follow the steps carefully to create a subdomain without any issue.
The first step is we need to login into our cPanel and go to the section called DOMAINS and click on subdomains as shown below.
You will get a page to create a subdomain enter the name for your subdomain and click on create as shown in below image
Now you can see our subdomain is created.
Now we need to install wordpress on this subdomain. To install the wordpress we need to go back to our cPanel and search for SOFTACULOUS APPS INSTALLER and click on wordpress in that as shown below.
Now click on install as shown below.
Choose Domain and remove wp from In Directory(Mandatory). Also change your site name, description, Admin user name and password as shown below.
After doing all these scroll down and select a theme and click on install as shown below,
Now open your subdomain in a new window, you may get screen like below but don’t worry subdomain take few hours to get activated some times. If it’s not activated in few hours once Email your hosting provider that please active my subdomain then they will activate.
The above steps are enough to create subdomain if you are not using
But if you are using Cloudflare service you need to do one more step. Login to your Cloudflare account.
Click on DNS and add your subdomain as shown in image. Follow the steps shown below.
That’s all your subdomain will get added in the Cloudflare. After few hours it will get activated.
If you have any doubts or if you face any issues please comment below.