{"id":766,"date":"2020-10-14T17:40:21","date_gmt":"2020-10-14T14:40:21","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=766"},"modified":"2023-06-14T11:51:10","modified_gmt":"2023-06-14T08:51:10","slug":"how-to-create-a-subdomain","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/how-to-create-a-subdomain\/","title":{"rendered":"How to Create a Subdomain"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">Subdomains could be useful for<\/span><b> both users and website administrators.<\/b><span style=\"font-weight: 400;\"> Imagine for a moment that you have a WordPress website, and you want to add an online shop to it. Technically, there are plugins that can help you use WordPress to <\/span><b>build an ecommerce website<\/b><span style=\"font-weight: 400;\">, but you might think that the better option is to use a <\/span><a href=\"https:\/\/www.scalahosting.com\/blog\/build-successful-ecommerce-website-magento\/\"><b>dedicated application like Magento<\/b><\/a><b> or PrestaShop.&nbsp;<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">The two scripts can&#8217;t co-exist in the same root folder, so you&#8217;re better off creating the <\/span><b>shop.yourdomain.com <\/b><span style=\"font-weight: 400;\">subdomain and using it to host your online shop. <\/span><b>Managing the two applications will be much easier.<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">At the same time, by <\/span><b>having the shop located at the subdomain<\/b><span style=\"font-weight: 400;\">, it will be easily discoverable by users, and they will be able to get to what they&#8217;re looking for with fewer clicks. <\/span><i><span style=\"font-weight: 400;\">Fewer clicks result in happier potential customers, and happier customers result in bigger revenues, especially when you&#8217;re selling goods or services.<\/span><\/i><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">There are other uses for subdomains. If you have translated your website into many different languages, for example, you can put them in different subdomains (<\/span><b>fr.yourdomain.com<\/b><span style=\"font-weight: 400;\">, <\/span><b>es.yourdomain.com<\/b><span style=\"font-weight: 400;\">, etc.).<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Indeed, most of these tasks can be performed with the use of subdirectories as well (e.g., <\/span><b>yourdomain.com\/shop <\/b><span style=\"font-weight: 400;\">or <\/span><b>yourdomain.com\/fr<\/b><span style=\"font-weight: 400;\">), and experts even claim that this is the better <\/span><b>strategy from an SEO perspective<\/b><span style=\"font-weight: 400;\">. Whatever the case, subdomains are often an essential part of the structure and the management of a website.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Creating subdomains in SPanel<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Creating a subdomain on your SPanel VPS takes no more than a few clicks of the mouse. Here are the exact steps:<\/span><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Log into SPanel&#8217;s User Interface and go to Subdomains.<\/strong><br>The default login URL is <em>https:\/\/yourdomain.com\/spanel <\/em>(make sure you substitute yourdomain.com for your actual domain). The tool for managing subdomains is available under the Domains section on SPanel&#8217;s homepage.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><img decoding=\"async\" width=\"849\" height=\"237\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/283.png\" alt=\"How to Create a Subdomain, Creating subdomains in SPanel\" class=\"wp-image-3729\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/283.png 849w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/283-300x84.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/283-768x214.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li><strong>Enter a valid domain name.<\/strong><br>You&#8217;ll see a drop-down menu with all your primary domain and the addon domains you&#8217;ve added to your account. Select the one you need and enter a valid subdomain. Subdomains can consist of letters, numbers, and hyphens.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><img decoding=\"async\" width=\"864\" height=\"459\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/284.png\" alt=\"How to Create a Subdomain, Creating subdomains in SPanel 2\" class=\"wp-image-3730\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/284.png 864w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/284-300x159.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/284-768x408.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li><strong>Select the subdomain&#8217;s document root.<\/strong><br>You now need to pick a document root for the new subdomain. by default, SPanel creates a new folder in the account&#8217;s <strong>Home<\/strong> directory, but you can choose a custom folder by typing the filepath in the <strong>Document Root <\/strong>field.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><img decoding=\"async\" width=\"857\" height=\"456\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/285.png\" alt=\"How to Create a Subdomain, Creating subdomains in SPanel 3\" class=\"wp-image-3731\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/285.png 857w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/285-300x160.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/285-768x409.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li><strong>Click Create Subdomain.<\/strong><br>After you click the <strong>Create Subdomain <\/strong>button, SPanel will set up the new subdomain and configure it to work with the document root (if the folder doesn&#8217;t exist already, SPanel will create it, as well). The new subdomain, along with all the existing ones, will be available in the list at the bottom of the page.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><img decoding=\"async\" width=\"1024\" height=\"277\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/286-1024x277.png\" alt=\"How to Create a Subdomain, Creating subdomains in SPanel 4\" class=\"wp-image-3732\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/286-1024x277.png 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/286-300x81.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/286-768x208.png 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/286.png 1277w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p class=\"youtube-player\" id=\"slF9NgP3z78\">How to Create a Subdomain<\/p>\n\n\n\n<script type=\"application\/ld+json\">\n{\n\"@context\": \"https:\/\/schema.org\",\n\"@type\": \"VideoObject\",\n\"name\": \"How to Create a Subdomain\",\n\"description\": \"Creating a subdomain on your SPanel VPS takes no more than a few clicks of the mouse.\",\n\"thumbnailUrl\": [\n\"https:\/\/i3.ytimg.com\/vi\/slF9NgP3z78\/maxresdefault.jpg\"\n],\n\"uploadDate\": \"2020-01-03\",\n\"duration\": \"PT0M35S\",\n\"embedUrl\": \"https:\/\/www.youtube.com\/watch?v=slF9NgP3z78\"\n}\n<\/script>\n\n\n\n<p class=\"youtube-player\" id=\"qwGE9xz5eb8\">How To Point a Domain Name To a Web Hosting Provider<\/p>\n\n\n\n<script type=\"application\/ld+json\">\r\n    {\r\n        \"@context\": \"https:\/\/schema.org\",\r\n        \"@type\": \"VideoObject\",\r\n        \"name\": \"How To Point a Domain Name To a Web Hosting Provider\",\r\n        \"description\": \"You can actually buy web hosting and domain name from different providers and just link these two things together. In this video we'll show you exactly how.\",\r\n        \"thumbnailUrl\": [\r\n            \"https:\/\/i3.ytimg.com\/vi\/qwGE9xz5eb8\/maxresdefault.jpg\"\r\n        ],\r\n        \"uploadDate\": \"2022-04-12\",\r\n        \"duration\": \"PT3M45S\",\r\n        \"embedUrl\": \"https:\/\/www.youtube.com\/watch?v=qwGE9xz5eb8\"\r\n    }\r\n<\/script>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.scalahosting.com\/whois.html?utm_source=scalahosting-internal-link&amp;utm_medium=banner&amp;utm_campaign=whois-referral&amp;utm_id=whois-referral\"><img decoding=\"async\" width=\"600\" height=\"100\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/07\/whois_banner_horizontal.png\" alt=\"How to Create a Subdomain, Creating subdomains in SPanel 5\" class=\"wp-image-4915\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/07\/whois_banner_horizontal.png 600w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/07\/whois_banner_horizontal-300x50.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Subdomains could be useful for both users and website administrators. Imagine for a moment that you have a WordPress website, and you want to add an online shop to it. Technically, there are plugins that can help you use WordPress to build an ecommerce website, but you might think that the better option is to [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[66],"tags":[],"class_list":["post-766","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=766"}],"version-history":[{"count":10,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/766\/revisions"}],"predecessor-version":[{"id":5645,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/766\/revisions\/5645"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}