{"id":1497,"date":"2019-02-08T10:35:58","date_gmt":"2019-02-08T10:35:58","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583405-how-to-create-and-delete-subdomains-in-hostinger\/"},"modified":"2026-03-16T12:12:17","modified_gmt":"2026-03-16T12:12:17","slug":"1583405-how-to-create-and-delete-subdomains-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583405-how-to-create-and-delete-subdomains-in-hostinger\/","title":{"rendered":"How to create a subdomain in Hostinger"},"content":{"rendered":"<p data-start=\"625\" data-end=\"793\">A subdomain allows you to create a separate section or an independent website under your main domain. For example, an online store can be hosted on <code data-start=\"775\" data-end=\"792\">shop.domain.tld<\/code>.<\/p><h4 data-start=\"891\" data-end=\"910\">Before you start<\/h4><p data-start=\"912\" data-end=\"968\">How you create a subdomain depends on your hosting type:<\/p><ul data-start=\"970\" data-end=\"1220\">\n<li data-start=\"970\" data-end=\"1023\">\n<p data-start=\"972\" data-end=\"1023\"><strong data-start=\"972\" data-end=\"997\">Web and cloud hosting<\/strong>: follow the steps below<\/p>\n<\/li>\n<li data-start=\"1024\" data-end=\"1077\">\n<p data-start=\"1026\" data-end=\"1077\"><strong data-start=\"1026\" data-end=\"1044\">Agency hosting<\/strong>: check the <a href=\"https:\/\/www.hostinger.com\/support\/11624019-how-to-create-a-subdomain-on-the-hostinger-agency-hosting-plan\/\">guide for subdomains on Agency hosting<\/a><\/p>\n<\/li>\n<li data-start=\"1078\" data-end=\"1220\">\n<p data-start=\"1080\" data-end=\"1220\"><strong data-start=\"1080\" data-end=\"1095\">VPS hosting<\/strong>: subdomain creation depends on your control panel or operating system template. Follow the documentation for your VPS setup<\/p>\n<\/li>\n<\/ul><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">Second-level subdomains (for example,&nbsp;<code>store.shop.domain.tld<\/code>) are not supported on web, cloud and Agency hosting.<\/div><h2 data-start=\"1342\" data-end=\"1373\" id=\"h-step-1-create-the-subdomain\">Step 1 &ndash; Create the subdomain<\/h2><p data-start=\"1375\" data-end=\"1493\">There are two ways to create a subdomain in Hostinger. The right option depends on how you want to manage the website.<\/p><h4 data-start=\"1495\" data-end=\"1567\"><strong>Method 1 (recommended) &ndash; Create a subdomain as an independent website<\/strong><\/h4><p data-start=\"1569\" data-end=\"1660\">Use this method if you want to manage the subdomain as a <strong data-start=\"1626\" data-end=\"1646\">separate website<\/strong>, for example: a WordPress website, a Hostinger Website Builder website, an online shop, or a standalone application.<\/p><p data-start=\"1569\" data-end=\"1660\">This is also the method to follow if the root domain of the subdomain is connected to a Hostinger Website Builder or Hostinger Horizons website.<\/p><p data-start=\"1766\" data-end=\"1838\">To create the subdomain:<\/p><ul data-start=\"1840\" data-end=\"1988\">\n<li data-start=\"1840\" data-end=\"1909\">\n<p data-start=\"1842\" data-end=\"1909\">Follow <strong data-start=\"1849\" data-end=\"1859\">Step 1<\/strong> of the guide: <a href=\"https:\/\/www.hostinger.com\/support\/1583214-how-to-add-a-website-in-hostinger\/#h-step-1-select-the-hosting-plan-and-website-type\">How to add a website in Hostinger<\/a><\/p>\n<\/li>\n<li data-start=\"1910\" data-end=\"1988\">\n<p data-start=\"1912\" data-end=\"1988\">During onboarding, enter the subdomain name (for example, <code data-start=\"1970\" data-end=\"1987\">shop.domain.tld<\/code>)<\/p>\n<\/li>\n<\/ul><p data-start=\"1990\" data-end=\"2083\">This method creates a fully independent website with its own settings and management options.<\/p><h4 data-start=\"395\" data-end=\"470\">Create the subdomain as part of an existing website<\/h4><p data-start=\"2150\" data-end=\"2246\">This option is available only if the main domain is hosted at Hostinger as a PHP\/HTML website (including WordPress) or a Node.js application. It is not supported for websites created with Hostinger Website Builder or Hostinger Horizons.<\/p><p data-start=\"1401\" data-end=\"1425\">Use this option only if:<\/p><ul data-start=\"1426\" data-end=\"1637\">\n<li data-start=\"1426\" data-end=\"1549\">\n<p data-start=\"1428\" data-end=\"1549\">the main domain is hosted at Hostinger as a <strong data-start=\"1472\" data-end=\"1492\">PHP\/HTML website<\/strong> (including WordPress), or a <strong data-start=\"1521\" data-end=\"1544\">Node.js application<\/strong>, and<\/p>\n<\/li>\n<li data-start=\"1550\" data-end=\"1637\">\n<p data-start=\"1552\" data-end=\"1637\">the subdomain should act as a <strong data-start=\"1582\" data-end=\"1613\">section of the same website<\/strong>, not as a separate site<\/p>\n<\/li>\n<\/ul><p data-start=\"2485\" data-end=\"2509\">To create the subdomain:<\/p><ol data-start=\"2511\" data-end=\"2812\">\n<li data-start=\"2511\" data-end=\"2541\">\n<p data-start=\"2514\" data-end=\"2541\">Open <strong data-start=\"2519\" data-end=\"2540\">hPanel &rarr; <a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a><\/strong><\/p>\n<\/li>\n<li data-start=\"2542\" data-end=\"2617\">\n<p data-start=\"2545\" data-end=\"2617\">Locate the website connected to your main domain and open <strong data-start=\"2603\" data-end=\"2616\">Dashboard<\/strong><\/p>\n<\/li>\n<li data-start=\"2618\" data-end=\"2669\">\n<p data-start=\"2621\" data-end=\"2669\">From the sidebar, open <strong data-start=\"2644\" data-end=\"2668\">Domains &rarr; Subdomains<\/strong><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/26512640-e314-429b-9668-6506f5b51d03.jpg\" width=\"899\" height=\"217\"><\/p>\n<\/li>\n<li data-start=\"2670\" data-end=\"2722\">\n<p data-start=\"2673\" data-end=\"2722\">Enter the subdomain name (for example, <code data-start=\"2712\" data-end=\"2720\">assets<\/code>).<img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/96374f92-5793-4a32-947d-432a8a3eda02.jpg\" width=\"710\" height=\"247\"><\/p>\n<\/li>\n<li data-start=\"2723\" data-end=\"2790\">\n<p data-start=\"2726\" data-end=\"2790\">Keep the default directory (recommended) or change it if needed.<\/p>\n<\/li>\n<li data-start=\"2791\" data-end=\"2812\">\n<p data-start=\"2794\" data-end=\"2812\">Select <strong data-start=\"2801\" data-end=\"2811\">Create<\/strong>.<\/p>\n<\/li>\n<\/ol><p data-start=\"2814\" data-end=\"2912\">This creates a subfolder inside the website&rsquo;s main directory using the same name as the subdomain.<\/p><h4 data-start=\"2914\" data-end=\"2955\">How to choose between the two methods<\/h4><ul data-start=\"2957\" data-end=\"3135\">\n<li data-start=\"2957\" data-end=\"3046\">\n<p data-start=\"2959\" data-end=\"3046\">Choose <strong data-start=\"2966\" data-end=\"2978\">Method 1<\/strong> if you want to manage the subdomain as a fully independent website, or if the main domain is connected to a Hostinger Website Builder or Hostinger Horizons website.<\/p>\n<\/li>\n<li data-start=\"2957\" data-end=\"3046\">\n<p data-start=\"2959\" data-end=\"3046\">Use the alternative option only if the subdomain needs to remain part of the same website structure and the main domain is not connected to a Website Builder or Horizons website.<\/p>\n<\/li>\n<\/ul><h2 data-start=\"3142\" data-end=\"3174\" id=\"h-step-2-connect-the-subdomain\">Step 2 &ndash; Connect the subdomain<\/h2><p data-start=\"3176\" data-end=\"3283\">For a subdomain to be accessible in a web browser, the required DNS records must exist for the main domain.<\/p><h4 data-start=\"3285\" data-end=\"3334\">If the main domain uses Hostinger nameservers<\/h4><p data-start=\"3336\" data-end=\"3511\">If your main domain points to Hostinger nameservers, DNS setup is handled automatically.<br data-start=\"3424\" data-end=\"3427\">After creating the subdomain, allow a few minutes for it to become available online.<\/p><h4 data-start=\"3513\" data-end=\"3561\">If the main domain uses external nameservers<\/h4><p data-start=\"3563\" data-end=\"3698\">If your domain points to external nameservers (for example, Cloudflare), DNS records must be added at the provider managing the domain.<\/p><ul data-start=\"3700\" data-end=\"4095\">\n<li data-start=\"3700\" data-end=\"3860\">\n<p data-start=\"3702\" data-end=\"3860\">For subdomains hosting <strong data-start=\"3725\" data-end=\"3769\">PHP\/HTML, WordPress, or Node.js websites<\/strong>, create an <strong data-start=\"3781\" data-end=\"3793\">A record<\/strong> for the subdomain pointing to&nbsp; the <a href=\"https:\/\/www.hostinger.com\/support\/4407303-where-to-find-the-a-record-of-your-hosting-account\">IP address<\/a> of your hosting plan.<\/p>\n<\/li>\n<li data-start=\"3861\" data-end=\"4095\">\n<p data-start=\"3863\" data-end=\"3988\">For subdomains hosting a <strong data-start=\"3888\" data-end=\"3917\">Hostinger Website Builder<\/strong> or <strong data-start=\"3921\" data-end=\"3933\">Horizons<\/strong> project, follow the appropriate domain-pointing guide:<\/p>\n<ul data-start=\"3991\" data-end=\"4095\">\n<li data-start=\"3991\" data-end=\"4038\">\n<p data-start=\"3993\" data-end=\"4038\"><a href=\"https:\/\/www.hostinger.com\/support\/how-to-point-a-domain-to-hostinger-horizons\/\">How to point a domain to Hostinger Horizons<\/a><\/p>\n<\/li>\n<li data-start=\"4041\" data-end=\"4095\">\n<p data-start=\"4043\" data-end=\"4095\"><a href=\"https:\/\/www.hostinger.com\/support\/6627577-how-to-point-a-domain-to-hostinger-website-builder\/\">How to point a domain to Hostinger Website Builder<\/a><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul><p data-start=\"4097\" data-end=\"4173\">After DNS changes are applied, allow up to <strong data-start=\"4140\" data-end=\"4152\">24 hours<\/strong> for DNS <a class=\"intercom-content-link\" href=\"\/support\/4146975-what-is-dns-propagation\" target=\"_blank\" rel=\"noopener\">propagation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating, managing, and deleting subdomains at Hostinger<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[267],"tags":[],"class_list":["post-1497","post","type-post","status-publish","format-standard","hentry","category-domains-hpanel"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583405-how-to-create-and-delete-subdomains-in-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583405-como-crear-y-eliminar-subdominios-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583405-comment-creer-et-supprimer-des-sous-domaines-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583405-cara-membuat-dan-menghapus-subdomain-hostinger\/","default":0},{"locale":"lt-LT","link":"https:\/\/www.hostinger.com\/lt\/support\/1583405-kaip-sukurti-ar-istrinti-subdomena-hostinger-platformoje\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583405-como-criar-e-excluir-subdominios-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583405------hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1497"}],"version-history":[{"count":9,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1497\/revisions"}],"predecessor-version":[{"id":7949,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1497\/revisions\/7949"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}