Domain vs subdomain vs URL
A domain is the name you register, such as example.pk. A subdomain is a part you add in front of it yourself, such as shop.example.pk, at no extra cost. A URL is the complete address of one page, such as https://shop.example.pk/shoes/.
Check a nameAsk on WhatsApp.com for Rs 99 with the Rs 10,000 website bundle, Rs 2,199 on its own.
The three terms with one example
Take the address https://shop.example.pk/shoes/.
- Domain: example.pk, the name that is registered and renewed
- Subdomain: shop.example.pk, created in your DNS settings
- URL: the whole line, including https and the page path /shoes/
Do I have to pay for a subdomain?
No. Once you own the domain you can create as many subdomains as you need by adding DNS records. Our guide “DNS records explained: A, CNAME, MX and TXT” shows which record does what.
When to use a subdomain
Subdomains suit parts of a business that run on different software, for example a shop on one platform and a blog on another, or a staff portal. For ordinary pages of the same site a folder such as example.pk/blog/ is usually simpler. Our guide “Subdomain or subfolder: which is better for SEO?” compares the two for search.
Is www a subdomain?
Yes. www is simply the most common subdomain. Most sites answer on both www.example.pk and example.pk and send one to the other.
Common questions
Is a subdomain a separate website?
It can be. A subdomain can point to a different server and run a completely different site, or it can show part of the same site.
Can I get a subdomain without buying a domain?
Only on someone else's domain, such as a free blog address. You do not control that name, and you cannot move it. Your own domain is the one you can keep.
Is a URL the same as a link?
A link is clickable text or a button, and the URL is the address the link opens.
Can email use a subdomain?
Yes, for example name@mail.example.pk, but most businesses use the main domain so the address is shorter.