You are on page 1of 10

Subdomain: What Is A Subdomain & When To Use It? https://www.a2hosting.

com/blog/when-to-use-subdomains/

(https://entchatserver.comm100.com/ChatWindow.aspx?siteId=1000583&planId=228)

 BLOG HOME (HTTPS://WWW.A2HOSTING.COM/BLOG)  A2 REVIEWS (HTTPS://WWW.A2HOSTING.COM/REVIEWS)

BLOGGING (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/BLOGGING/) DEVELOPMENT (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/DEVELOPMENT/)

DOMAINS (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/DOMAINS/) ECOMMERCE (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/ECOMMERCE/)

MARKETING (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/MARKETING/) NEWS (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/NEWS/) PHP (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/PHP/)

SECURITY  (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/SECURITY/) SITE SPEED (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/PERFORMANCE-OPTIMIZATION/)

SOFTWARE  (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/SOFTWARE/) WEB HOSTING  (HTTPS://WWW.A2HOSTING.COM/BLOG/CATEGORY/WEB-HOSTING/)

Home (https://www.a2hosting.com/blog) |  Development (https://www.a2hosting.com/blog/category/development/)    Domains


THE A2 POSTING
(https://www.a2hosting.com/blog/category/domains/)   

Subdomain: What Is A Subdomain & When To Use It?


POPULARRECENTCATEGORIESTAGS

Win A Free Year Of 20X Faster Turbo Hosting!


(https://www.a2hosting.com/blog/win-free-
year-20x-faster-turbo-hosting/)
News    | Dec 05, 2016

Announcing Enhanced Site Protection With A2


Hosting + Sucuri (https://www.a2hosting.com
/blog/announcing-enhanced-site-protection-a2-
hosting-sucuri/)
News    | Jul 12, 2017

How To Choose A Clef Two-Factor Authentication


Alternative (https://www.a2hosting.com
/blog/clef-two-factor-authentication-
alternatives/)
Security    WordPress    | Apr 12, 2017

How To Navigate Through Web Hosting Options


To Find What’s Right For You
(https://www.a2hosting.com/blog/navigate-
web-hosting-options-find-whats-right/)
Web Hosting    | Nov 21, 2016

1 of 10 12/6/19, 10:39 AM
Subdomain: What Is A Subdomain & When To Use It? https://www.a2hosting.com/blog/when-to-use-subdomains/

Launch Of Anycast DNS Adds To High Speed


Hosting Features (https://www.a2hosting.com
Oct 18, 2017 0 by Brad Litwin /blog/launch-anycast-dns-adds-high-speed-
hosting-features/)
News    Site Speed    | Sep 23, 2016

If you’re a fledgling site owner, (https://www.a2hosting.com) you might not know that you can use a single domain to set up multiple
How to Find and Grow Your Audience (In 3 Steps)
websites. We’re not talking about separate pages, but full blown websites running side by side on the same domain.
(https://www.a2hosting.com/blog/grow-your-
audience/)
There are two ways to accomplish this, by using ‘subdirectories’ or ‘subdomains’. From a technical standpoint, both approaches work Marketing    | Dec 05, 2019
much the same way, but we prefer subdomains since they offer a cleaner look.
A Quick Guide to Email Marketing Automation
In this article, we’re going to talk about what subdomains are and why you should use them. Then we’ll discuss a few of the situations (https://www.a2hosting.com/blog/email-
marketing-automation/)
where it makes sense to do so, before teaching you how to set up (and use) a subdomain of your own. Let’s get to it!
Email    Marketing    | Dec 03, 2019

3 Things to Pay Attention to When Establishing


Your Brand Online (https://www.a2hosting.com
What Is A Subdomain (And Why You Should Use One)? /blog/establishing-your-brand-online/)
Marketing    | Nov 28, 2019

How WordPress Themes Can Impact Your


Website’s Loading Times
(https://www.a2hosting.com/blog/themes-
loading-times/)
WordPress    | Nov 26, 2019

How to Write ‘Scannable’ Online Content (4


Quick Tips) (https://www.a2hosting.com
/blog/write-scannable-online-content/)
News    | Nov 21, 2019

Blogging (https://www.a2hosting.com/blog/category/blogging/)
(27)
Development (https://www.a2hosting.com/blog/category
Subdomains are a great way to separate areas of your site with very different functionalities. /development/) (101)
Domains (https://www.a2hosting.com/blog/category/domains/)
(24)
Subdomains enable you to set up multiple websites using a single domain. Take a look at our client area for example – you’ll notice its eCommerce (https://www.a2hosting.com/blog/category
URL is my.a2hosting.com. In this case, we’re using the my subdomain through our normal URL, which enables us to set up a hosting /ecommerce/) (24)
management panel alongside the rest of our site. Marketing (https://www.a2hosting.com/blog/category/marketing/)
(119)
News (https://www.a2hosting.com/blog/category/news/) (67)
You can also use subdirectories to achieve the same end, for example by setting up an a2hosting.com/my subdirectory. However, PHP (https://www.a2hosting.com/blog/category/php/) (15)
we’re partial to subdomains in some cases because of how they impact Search Engine Optimization (SEO) Security (https://www.a2hosting.com/blog/category/security/) (48)
(https://www.a2hosting.com/blog/seo-decoded-6-simple-steps-improve-rankings/). For example: SSL (https://www.a2hosting.com/blog/category/security/ssl/) (6)
Site Speed (https://www.a2hosting.com/blog/category
/performance-optimization/) (54)
Search engines recognize subdomains as individual websites. That means you get more chances to increase your traffic Software (https://www.a2hosting.com/blog/category/software/)
(https://www.a2hosting.com/blog/3-easy-ways-save-time-boost-traffic-ifttt-wordpress/). (156)
They enable you to set up backlinks (https://moz.com/learn/seo/backlinks) to your primary domain, which can increase its authority. Drupal (https://www.a2hosting.com/blog/category/software
/drupal/) (16)
Joomla (https://www.a2hosting.com/blog/category/software

2 of 10 12/6/19, 10:39 AM
Subdomain: What Is A Subdomain & When To Use It? https://www.a2hosting.com/blog/when-to-use-subdomains/

With that in mind, let’s talk about some of the specific situations where it makes sense to use subdomains over subdirectories. /joomla/) (12)
Magento (https://www.a2hosting.com/blog/category/software
/magento/) (12)
OpenCart (https://www.a2hosting.com/blog/category/software
/opencart-software/) (7)
PrestaShop (https://www.a2hosting.com/blog/category
When to Use a Subdomain Instead of a Subdirectory /software/prestashop/) (5)
WooCommerce (https://www.a2hosting.com/blog/category
/software/woocommerce/) (8)
We’ve covered the difference between subdomains and subdirectories, so let’s get right to the point. Here are just two scenarios
WordPress (https://www.a2hosting.com/blog/category/software
where it makes more sense to use the former over the latter: /wordpress/) (115)
Web Hosting (https://www.a2hosting.com/blog/category/web-
1. Running an e-commerce store (https://www.a2hosting.com/ecommerce-hosting) to complement your primary website. hosting/) (60)
Dedicated (https://www.a2hosting.com/blog/category/web-
2. Setting up a blog for an existing company or business website. hosting/dedicated/) (6)
Email (https://www.a2hosting.com/blog/category/web-hosting
/email/) (10)
These two situations have one thing in common: they’re both running as parallel sites with specific functionality. You can achieve the
Reseller (https://www.a2hosting.com/blog/category/web-
exact same results using subdirectories, but the SEO benefits often make subdomains a better choice. hosting/reseller/) (6)
Shared Hosting (https://www.a2hosting.com/blog/category
At this stage, it’s important to note there’s a lively debate on this very subject. Many people prefer to use subdomains, whereas others /web-hosting/shared-hosting/) (6)
VPS (https://www.a2hosting.com/blog/category/web-hosting
say that subdirectories are the better choice, even taking SEO into consideration. If you want to learn about the latest developments, /vps/) (14)
check out the Moz blog (https://moz.com/blog), which constantly deals with the most recent developments in SEO.

WordPress (https://www.a2hosting.com/blog/tag/wordpress/)

How to Set Up and Use Subdomains (In 3 Simple Steps) WordPress Plugins (https://www.a2hosting.com/blog/tag/wordpress-plugins/)

SEO (https://www.a2hosting.com/blog/tag/seo/)

WooCommerce (https://www.a2hosting.com/blog/tag/woocommerce/)

Security (https://www.a2hosting.com/blog/tag/security/)

domain registration (https://www.a2hosting.com/blog/tag/domain-registration/)

domains (https://www.a2hosting.com/blog/tag/domains/)

Joomla (https://www.a2hosting.com/blog/tag/joomla/)

Web Hosting (https://www.a2hosting.com/blog/tag/web-hosting/)

eCommerce (https://www.a2hosting.com/blog/tag/ecommerce/)

vps (https://www.a2hosting.com/blog/tag/vps/)

SSL (https://www.a2hosting.com/blog/tag/ssl/)

cPanel (https://cpanel.com/) enables you to set up subdomains in a matter of minutes. Drupal (https://www.a2hosting.com/blog/tag/drupal/)

VPS Hosting (https://www.a2hosting.com/blog/tag/vps-hosting/)


For this section, we’re going to focus on how to create subdomains using cPanel, given that it’s currently the most popular hosting
panel available. If your host doesn’t use cPanel, you’ll need to get in touch with them and check out their documentation concerning Plugins (https://www.a2hosting.com/blog/tag/plugins/)

subdomains. If you’ve never accessed your cPanel before, keep reading – we’ll cover the process in full. Prestashop (https://www.a2hosting.com/blog/tag/prestashop/)

wordpress hosting (https://www.a2hosting.com/blog/tag/wordpress-hosting/)

3 of 10 12/6/19, 10:39 AM
Subdomain: What Is A Subdomain & When To Use It? https://www.a2hosting.com/blog/when-to-use-subdomains/

Analytics (https://www.a2hosting.com/blog/tag/analytics/)

gutenberg (https://www.a2hosting.com/blog/tag/gutenberg/)

Step #1: Access Your cPanel managed vps (https://www.a2hosting.com/blog/tag/managed-vps/)

virtual private server (https://www.a2hosting.com/blog/tag/virtual-private-server/)


To access your cPanel, you’ll need to log into your hosting account. For example, A2 Hosting (https://www.a2hosting.com/solutions)
customers need to click on the Login button on the home page, then enter their account’s credentials into the relevant fields: keyword research (https://www.a2hosting.com/blog/tag/keyword-research/)

CMS (https://www.a2hosting.com/blog/tag/cms/)

blogging (https://www.a2hosting.com/blog/tag/blogging/)

Opencart (https://www.a2hosting.com/blog/tag/opencart/)

CloudFlare (https://www.a2hosting.com/blog/tag/cloudflare/)

Google Analytics (https://www.a2hosting.com/blog/tag/google-analytics/)

Social Media (https://www.a2hosting.com/blog/tag/social-media/)

gutenberg editor (https://www.a2hosting.com/blog/tag/gutenberg-editor/)

what is gutenberg (https://www.a2hosting.com/blog/tag/what-is-gutenberg/)

Magento (https://www.a2hosting.com/blog/tag/magento/)

ssl certificate (https://www.a2hosting.com/blog/tag/ssl-certificate/)

domain names (https://www.a2hosting.com/blog/tag/domain-names/)

Email Marketing (https://www.a2hosting.com/blog/tag/email-marketing/)

Once you’re logged in, you’ll come to your main dashboard. Not every provider uses the same type of platform, but in our case, you Virtual Private Servers (https://www.a2hosting.com/blog/tag/virtual-private-servers/)

can find an option to access your site’s cPanel under the main dashboard:
Windows hosting (https://www.a2hosting.com/blog/tag/windows-hosting/)

Dedicated Server (https://www.a2hosting.com/blog/tag/dedicated-server/)

wordpress maintenance (https://www.a2hosting.com/blog/tag/wordpress-maintenance/)

wordpress 5 (https://www.a2hosting.com/blog/tag/wordpress-5/)

forum hosting (https://www.a2hosting.com/blog/tag/forum-hosting/)

sitebuilder (https://www.a2hosting.com/blog/tag/sitebuilder/)

Jetpack (https://www.a2hosting.com/blog/tag/jetpack/)

search engine optimization (https://www.a2hosting.com/blog/tag/search-engine-optimization/)

Mobile Optimization (https://www.a2hosting.com/blog/tag/mobile-optimization/)

Affiliate Marketing (https://www.a2hosting.com/blog/tag/affiliate-marketing/)

Click on the Login button now, which brings you to your account’s cPanel. The number of options here can be overwhelming, so we
Facebook Ads (https://www.a2hosting.com/blog/tag/facebook-ads/)
recommend you read up (https://www.a2hosting.com/kb/cpanel) on cPanel’s functionality when you have the time.
elementor (https://www.a2hosting.com/blog/tag/elementor/)

Marketing (https://www.a2hosting.com/blog/tag/marketing/)

email (https://www.a2hosting.com/blog/tag/email/)

4 of 10 12/6/19, 10:39 AM
Subdomain: What Is A Subdomain & When To Use It? https://www.a2hosting.com/blog/when-to-use-subdomains/

WordPress Themes (https://www.a2hosting.com/blog/tag/wordpress-themes/)

Step #2: Create a Subdomain in cPanel


Creating subdomains using cPanel is remarkably simple. Scroll down until you find a section named Domains, then look for Connect With Us
the Subdomains option and click it. From here, choose a name for your subdomain and specify the domain you’d like to add it to. In
this example, we’re setting up a shop subdomain: 
(https://www.linkedin.com

   /company
 

(https://twitter.com
(https://www.facebook.com
(https://plus.google.com
/a2- (https://www.youtube.com
(https://www.a2hosting.com
/a2hosting)
/a2webhosting/)
/+A2hostingfast)
hosting)
/user/A2HostingHelp)
/blog/feed/)

Next, click on the button that says Create, and that’s it! You’ll see a success message if everything goes well, and your subdomain will
then appear on a list at the bottom of the Subdomains section:

From here, you can delete any subdomain you want by clicking on the Remove button. However, any data on a deleted subdomain
will be lost forever, so keeping a copy of it should be a consideration before you go ahead.

Step #3: Set Up a Website on Your Subdomain


Once you have a working subdomain, the final step is to put it to good use. For all intents and purposes, your subdomain will work as
an entirely new website, even if it shares a primary domain with others.

5 of 10 12/6/19, 10:39 AM
Subdomain: What Is A Subdomain & When To Use It? https://www.a2hosting.com/blog/when-to-use-subdomains/

For example, you can use your new subdomain to set up a WordPress website. To do this, return to your cPanel, find the Softaculous
App Installer section, then click the WordPress option:

You’ll be brought to the Install tab. Here, you can set up WordPress on your new subdomain by choosing it from the Choose
Domain option under Software Setup:

All that’s left is to fill out a few more fields. For example, you’ll have to pick a name for your site, set an admin username, choose a
password and add a suitable email address, and also pick a language for your site. Finally, click on the Install button and give it time to
finish processing. Once it’s complete, you’ll be able to access your new site:

6 of 10 12/6/19, 10:39 AM
Subdomain: What Is A Subdomain & When To Use It? https://www.a2hosting.com/blog/when-to-use-subdomains/

It’s worth noting that you can set up as many subdomains as you want for a single domain, but (of course) you should only use them
when it makes sense to do so!

Conclusion
Subdomains are a great way to differentiate areas of your website according to their functionality. For example, you can use
a shop.domain.com address to set up an e-commerce solution (https://www.a2hosting.com/blog/set-woocommerce-store-3-simple-
steps/) that runs parallel to the rest of your site. Subdomains look clean, and they’re easy to set up, so there are few downsides to
using them.

In this post, we’ve shown you how to set up and use a subdomain through your cPanel (https://cpanel.com/). Let’s quickly recap the
steps:

1. Access your cPanel account and find the Subdomains option.


2. Create a subdomain.
3. Set up any type of website you want on your new subdomain.

Do you have any questions about how and when to use subdomains? Ask away in the comments section below!

Image credit: Pixabay (https://pixabay.com/en/files-folder-index-shield-office-286445/).

Share
(/#facebook) (/#twitter)
(/#linkedin) (/#pinterest)
(/#reddit)
(https://www.addtoany.com
/share#url=https%3A%2F
%2Fwww.a2hosting.com%2Fblog%2Fwhen-
to-use-subdomains%2F&title=Subdomain
%3A%20What%20Is%20A%20Subdomain
%20%26
%20When%20To%20Use%20It%3F)

7 of 10 12/6/19, 10:39 AM
Subdomain: What Is A Subdomain & When To Use It? https://www.a2hosting.com/blog/when-to-use-subdomains/

18 Comments The A2 Posting 


1 Login

 Recommend 1 t Tweet f Share Sort by Best

Join the discussion…


LOG IN WITH
OR SIGN UP WITH DISQUS ?

Name

D.T. Gray • a year ago


Hi Mr. Brad -- I had a question about subdomains and can't find a clear answer on google. Say you have a subdomain that you want to
shorten, hide, or replace the URL. Can it be done?

Example: (shop.mysite.com) shortened to (shop.com) or hidden to (shop.mysite.com).


I guess hiding or masking the web address is the ultimate goal.

I ask cause I'm interested in selling product from one of my subdomains but I have a friend that wants to sell different product on another
subdomain of mine and I want to keep it simple as possible without buying another domain.
1△ ▽ • Reply • Share ›

A2 Hosting Mod > D.T. Gray • 10 months ago


Hi D.T Gray - I would advise highly against this. Taking the shop.mysite.com being shortened to shop.com example you gave, this
is not possible as that is a separate domain entirely.

shop.mysite.com can be masked to mysite.com however it would only really be able to serve 1 sub domain otherwise if you
manually visit mysite.com there won't be a way to really know which 'sub domain' to serve (which sub domain to serve content for)
and if you did find a way to do this, it would be confusing for search engines such as Google as you'd have two different types of
content ranking.

The best approach would be to have separate domains for each site mysite.com, mysite2.com etc. Or sub domains
store1.mysite.com, store2.mysite.com.
△ ▽ • Reply • Share ›

Xizzee • 2 years ago


Brad,

Thank you for this article on subdomains. You mention there are few downsides to using them, but you don't really address them. Could
you address them here, or did you already do so in another blog post?

Thanking you in advance,


Eileen
1△ ▽ • Reply • Share ›

anjani • 5 months ago


Does subdomain shows loading error if the original domain working fine.
△ ▽ • Reply • Share ›

A2 Hosting Mod > anjani • 5 months ago


You shouldn't experience a loading error especially if your original domain is working fine. If you have a hosting account with us
feel free to create a ticket with our support team and we can look deeper into the cause of the error.

8 of 10 12/6/19, 10:39 AM
Subdomain: What Is A Subdomain & When To Use It? https://www.a2hosting.com/blog/when-to-use-subdomains/

Newsletter (https://www.linkedin.com

/company
Web development tips, marketing strategies and A2 Hosting news (https://www.facebook.com
 (https://twitter.com
 /a2- (https://www.youtube.com

sent to your inbox. /a2webhosting/)
/a2hosting)
hosting)
/user/A2HostingHelp)

HOSTING FEATURES SERVICES SUPPORT COMPANY


Web Hosting Developer Friendly Hosting Blog Hosting Submit a Support Ticket About A2 Hosting
(https://www.a2hosting.com/web- (https://www.a2hosting.com (https://www.a2hosting.com/blog- (https://my.a2hosting.com (https://www.a2hosting.com
hosting) /developer-friendly-hosting) hosting) /submitticket.php?_ga=2.211659484.838311551.1541065582-1290538731.1538976649
/about)
WordPress Hosting Domain Registration CMS Hosting Contact Sales A2 Hosting Reviews
(https://www.a2hosting.com (https://www.a2hosting.com (https://www.a2hosting.com/cms- (https://my.a2hosting.com (https://www.a2hosting.com
/wordpress-hosting) /domains) hosting) /contact.php?_ga=2.211659484.838311551.1541065582-1290538731.1538976649
/reviews)
Managed WordPress Domain Transfer CRM Hosting Knowledgebase Affiliate Program
(https://www.a2hosting.com (https://www.a2hosting.com (https://www.a2hosting.com/crm- (https://www.a2hosting.com/kb) (https://www.a2hosting.com
/wordpress-hosting/managed) /domains/transfer) hosting) A2 Hosting Blog /about/affiliate-program)
Hosting SSL Certificates eCommerce Hosting (https://www.a2hosting.com/blog) Careers
(https://www.a2hosting.com (https://www.a2hosting.com/ssl- (https://www.a2hosting.com 99.9% Uptime Commitment (https://www.a2hosting.com
/wordpress-hosting/managed) certificates) /ecommerce-hosting) (https://www.a2hosting.com/99.9- /about/careers)
Reseller Hosting SwiftServers Fast Hosting Forum Hosting uptime-commitment) Data Centers
(https://www.a2hosting.com (https://www.a2hosting.com (https://www.a2hosting.com Anytime Money Back (https://www.a2hosting.com
/reseller-hosting) /swiftservers-fast-hosting) /forum-hosting) (https://www.a2hosting.com /about/data-center)
VPS Hosting Compare Hosting Linux Hosting /anytime-money-back-guarantee) Policies
(https://www.a2hosting.com/vps- (https://www.a2hosting.com (https://www.a2hosting.com/linux- Guarantee (https://www.a2hosting.com
hosting) /compare) hosting) (https://www.a2hosting.com /about/policies)
Managed VPS Hosting Wiki Hosting /anytime-money-back-guarantee) Terms Of Service
(https://www.a2hosting.com (https://www.a2hosting.com/wiki- (https://www.a2hosting.com
/managed-vps-hosting) hosting) /about/policies/terms-of-service)
Cloud VPS Hosting Windows Hosting Privacy Policy
(https://www.a2hosting.com (https://www.a2hosting.com (https://www.a2hosting.com
/cloud-vps-hosting) /windows-hosting) /about/policies/privacy)
Dedicated Server Hosting Locations
(https://www.a2hosting.com (https://www.a2hosting.com
/dedicated-server-hosting) /locations)
Email Hosting Refer-A-Friend
(https://www.a2hosting.com (https://www.a2hosting.com
/email-hosting) /about/refer-a-friend)

Payment accepted

9 of 10 12/6/19, 10:39 AM
Subdomain: What Is A Subdomain & When To Use It? https://www.a2hosting.com/blog/when-to-use-subdomains/

(https://www.bbb.org/eastern-michigan/business-reviews/internet-web-hosting

/a2-hosting-inc-in-ann-arbor-mi-49003294/#bbbonlineclick)
(https://www.glassdoor.com/Overview/Working-at-A2-Hosting-

EI_IE236750.11,21.htm)

Copyright © A2 HOSTING (index.html) 2019

10 of 10 12/6/19, 10:39 AM

You might also like