A subdomain is a domain that is a part of another domain, for example, blog.websiterating.com is a subdomain of the domain websiterating.com
What is Sub-domain?
Your website is divided into various parts and one of those parts is known as a sub-domain. Your home page http://www.example.com, for example, would constitute the domain name.
The other pages on your site could be organized by creating different sub-domains to organize them further. For example, http://blog.example.com would be a blog page, while http://shopping.example.com could be an online store.
Sub-domains can also be used to create additional sites for your domain name, or even add a completely new TLD (Top Level Domain) to your URL.
For example, http://subdomain1.example.com could be a subdomain to your example.com domain name, while http://subdomain2.example.com may have an entirely different TLD (such as .org) which would signify that this website is completely separate from the main site at example.com.
Types of sub-domain
Let's talk about the sub-domain in detail!
Sub-domain: Path and Name (example.domain.com)
This is the most basic type of sub-domain: The user creates a new domain name within the top-level domain, and uses it to point towards their own site or part thereof; this can be done in any number of ways (for example, using an A record, CNAME, or even a completely different protocol like Bitly).
Please note that when talking about sub-domain here, we are referring to the second installation of the website; this may be your own space on someone else's domain (e.g. icanhascheezburger.wordpress.com)
Sub-domain: Path (example.com/path)
This sub-domain is becoming increasingly popular. It works in the same way as the previous case, but instead of creating a second top-level domain, it creates a path within the original top-level dom…
Sub-domain: Name (example.org/username)
This sub-domain is becoming increasingly popular. It works in the same way as the previous case, but instead of creating a second top-level domain, it creates a path within the original top-level domain…
Sub-domain: IP Address (example.com/ipaddress)
A sub-domain of this type allows you to connect your site to The Web server's IP address, rather than to a top-level domain (example.com). You can find out what your site's IP address is by visiting…
Sub-domain: Port Number (example.org:4443/path)
This sub-domain connects to any port number provided that it is preceded with “:”. It's commonly used to run IRC servers or web servers on high ports where serving from the top-level domain is.
Sub-domain: Username ([email protected])
A sub-domain of this type allows you to connect your site to an email address that belongs to you, rather than to a top-level domain (example.com). It is commonly used to redirect email…
Sub-domain: Provider Name ([email protected])
A sub-domain of this type allows you to connect your site to the username, rather than a top-level domain (example.com). This is often done by bloggers who choose to host their blog on a third-party platform.
How do I use sub-domains?
Sub-domain is a feature that allows you to set up particular web pages under the top-level domain. It lets you link your main website into other websites which are under an organization's authority.
For example, if there are many ecommerce websites belonging to the same business entity, it would be easy for them to share their contents among themselves using the sub-domain feature.
It is mostly used in large organizations to maintain their websites and web pages professionally. It is also a great way of sharing resources such as images, videos, and even documents among different departments or divisions of the same organization.
Apart from that, there are other ways in which it can be useful for you too! For example, let's say that you are running a blogging site and you have tons of articles written on different sub-topics.
You can then configure a sub-domain for each subtopic which will let you host them all under your main blog.
It is quite similar to how normal directories work on computers. Just like how there are many folders stored under a directory, you can also have many sub-domains stored under a website address.
In order to create a sub-domain from your existing domain, all you need to do is make use of the CNAME record which is an acronym for Canonical Name record. It basically lets you assign sub-domain names to your main domain.
To make it simple, you can think of CNAME as a piece of contact information for your website address which will allow people to reach you at many different locations.
In addition, if someone wanted to send you mail, they would not have to search for the physical address of your office because it has been mentioned in the contact details that they can just send you a mail at your website address!
In the same way, CNAME will allow you to change the contact details of your domain such as its name and it will also let you use different names as sub-domains for your main website.
It is possible to set up more than one sub-domain by using this method. However, it is important to note that you can only use sub-domains for your own website.
In order to configure a sub-domain on your website, all you need is to make changes in the DNS settings which will be provided by the company from where you purchased your domain name system.
Why is a subdomain needed?
The real answer is that if you're building an online store and it's a section or subsection of your website, then you should consider having it on a subdomain because when people link to the specific products in the store pages they would use the subdomain.
However, if it's a top-level section of your website – if it is not related to anyone specific product or group of products but rather something more unique to your business as a whole such as an informational resource like an “online store” for instance – then you may be better off using the www.
So, at this point, you would ask yourself whether it is a section of your website where people would likely link to specific products or links within the subsection versus something more unique to your business as a whole.
If it's something more unique to your business as a whole, then I'd suggest going with the www because that's going to be easier for people to link to.
But if it is in fact a section of your website that deals with products, then I'd definitely recommend using the subdomain because that's how people are most likely to link to it.
How to create a subdomain?
Cpanel is a very user-friendly tool that can ease your task of managing multiple hosting accounts. And the most amazing thing about Cpanel is that it does not require any kind of technical knowledge, even a layman can use this without much hassle. Creating a subdomain on Cpanel is quite easy you just need to follow the following steps;
1) Go and log in to cPanel and under the ‘Domains' section, click on ‘Subdomains'. You will see an interface as shown below:
2) Now type the name for your subdomain in the text box. It can be anything like www or blog, etc.
3) After typing the name for your subdomain, click on the ‘Create' button to create it. So this is how you can easily make a subdomain in Cpanel
Domain vs Subdomain
A reader is in a situation where the client wants to use a domain name that has been purchased for quite some time and has been set up with an SSL certificate.
The client wants to redirect this domain to another site they have on a subdomain, but they want it done so that the associated SSL certificate remains valid. They don't want to purchase a new certificate for the subdomain.
The reader asks:
Can I use DNS A record(s) to redirect my domain name to another subdomain under my hosting account? And still, keep the same SSL certificate associated with it? Or do I need to purchase another SSL certificate that is associated with the subdomain where my site is located?
I tried Googling the web to find the answer but I couldn't find one. So I'm asking you guys, can this be done?
It's not something that comes up often, but there are at least two ways to do it – both with their pros and cons
Redirecting the domain to the subdomain means that there's no need for a separate SSL certificate (which can be an additional cost) and you should expect all search engines to re-index your site as soon as possible. You can also get a domain extension on a separate website
However, if something goes wrong with the redirect, it will take some time before users can access your website again and there's also a chance that a few visitors will end up on the wrong site because of a typo.
If you're going to redirect from a domain name to another domain name, it's probably best to use an A Record for the master domain and a CNAME record for the subdomain. That way, both can share an SSL certificate.
Note: if you redirect in the other direction (from a subdomain to a domain) then you should use an A record for the main domain and a name for the subdomain. It's also worth noting that once you have done this, all future emails sent to addresses on your main domain will end up on the subdomain.
This can be mitigated to some extent by setting up SMTP forwarding from the subdomain to the domain.
If that's not an option (you can't change the hosting and/or DNS settings for whatever reason), then you may like to use a 301 redirect which will preserve any search engine positions and referrer data in most cases, but again – it's at least a few days before search engines re-crawl and index the site.
A subdomain is a website that exists within the URL of another domain. They are often used to create additional websites for specific purposes, such as marketing or customer service.
While subdomains are widely regarded as a poor choice for search engine optimization (SEO) purposes, it helps create subdomains with a separate site. Ecommerce sites typically require a primary domain name on an existing website with a free domain and web address.
There are many benefits of using subdomains, but they can also have drawbacks if not used correctly. In this blog post, we will discuss what a subdomain is and how it works in order to help you decide if they are right for your business! The website content includes a root domain on location-specific sites.