{"id":512,"date":"2024-08-24T15:27:01","date_gmt":"2024-08-24T15:27:01","guid":{"rendered":"https:\/\/drupalwebhosting.in\/tutorials\/?p=512"},"modified":"2024-08-24T15:27:31","modified_gmt":"2024-08-24T15:27:31","slug":"managing-domains-and-subdomains","status":"publish","type":"post","link":"https:\/\/drupalwebhosting.in\/tutorials\/managing-domains-and-subdomains\/","title":{"rendered":"Managing Domains and Subdomains in DirectAdmin"},"content":{"rendered":"\n<p>Managing domains and subdomains in <a href=\"https:\/\/directadmin.com\/\" data-type=\"link\" data-id=\"https:\/\/directadmin.com\/\" target=\"_blank\" rel=\"noopener\">DirectAdmin <\/a>is an essential task for organizing your website structure and content. <\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#managing-domains-and-subdomains-in-direct-admin\">Managing Domains and Subdomains in DirectAdmin<\/a><ul><li><a href=\"#1-managing-domains\">1. Managing Domains<\/a><ul><li><a href=\"#adding-a-new-domain\">Adding a New Domain<\/a><\/li><li><a href=\"#managing-domains-existing\">Managing Domains (Existing)<\/a><\/li><li><a href=\"#dns-management\">DNS Management<\/a><\/li><\/ul><\/li><li><a href=\"#2-managing-domains-subdomains\">2. Managing Domains (Subdomains)<\/a><ul><li><a href=\"#creating-a-subdomain\">Creating a Subdomain<\/a><\/li><li><a href=\"#modifying-or-deleting-subdomains\">Modifying or Deleting Subdomains<\/a><\/li><\/ul><\/li><li><a href=\"#3-redirecting-domains-and-subdomains\">3. Redirecting Domains and Subdomains<\/a><ul><li><a href=\"#setting-up-a-redirect\">Setting Up a Redirect<\/a><\/li><\/ul><\/li><li><a href=\"#4-ssl-management-for-domains-and-subdomains\">4. SSL Management for Domains and Subdomains<\/a><ul><li><a href=\"#installing-ssl-certificates\">Installing SSL Certificates<\/a><\/li><\/ul><\/li><li><a href=\"#5-domain-pointers-and-aliases\">5. Domain Pointers and Aliases<\/a><ul><li><a href=\"#adding-domain-pointers\">Adding Domain Pointers<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"managing-domains-and-subdomains-in-direct-admin\">Managing Domains and Subdomains in DirectAdmin<\/h2>\n\n\n\n<p>Here&#8217;s a detailed guide on how to manage both domains and subdomains using DirectAdmin:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-managing-domains\"><strong>1. Managing Domains<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"adding-a-new-domain\"><strong>Adding a New Domain<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Log in to DirectAdmin<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Use your credentials to access the DirectAdmin control panel.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Access Domain Setup<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Navigate to <strong>Account Manager<\/strong> > <strong>Domain Setup<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Add a New Domain<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Click the <strong>Add Another Domain<\/strong> button.<\/li>\n\n\n\n<li>Enter the domain name you want to add (e.g., <code><a href=\"https:\/\/drupalwebhosting.in\/\" data-type=\"link\" data-id=\"https:\/\/drupalwebhosting.in\/\">yournewdomain.com<\/a><\/code>).<\/li>\n\n\n\n<li><strong>Options<\/strong>:\n<ul class=\"wp-block-list\">\n<li><strong>SSL<\/strong>: Enable this if you plan to secure your domain with SSL (HTTPS).<\/li>\n\n\n\n<li><strong>PHP<\/strong>: Choose whether to enable or disable PHP for this domain.<\/li>\n\n\n\n<li><strong>CGI Access<\/strong>: Allow or deny CGI scripts.<\/li>\n\n\n\n<li><strong>Private HTML<\/strong>: Allows for separate private_html and public_html directories for HTTPS and HTTP content respectively.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click <strong>Create<\/strong> to finalize adding the domain.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"managing-domains-existing\"><strong>Managing Domains (Existing)<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>View Existing Domains<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Under <strong>Domain Setup<\/strong>, you&#8217;ll see a list of all domains associated with your account.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Modify Domain Settings<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Click on the domain name to modify its settings (e.g., enabling\/disabling SSL, managing DNS settings).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Delete a Domain<\/strong>:\n<ul class=\"wp-block-list\">\n<li>If you need to remove a domain, select it from the list and click <strong>Delete<\/strong>. This will remove all associated files, so proceed with caution.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"dns-management\"><strong>DNS Management<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Access DNS Management<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Navigate to <strong>Account Manager<\/strong> > <strong>DNS Management<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Modify DNS Records<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Select the domain you want to manage.<\/li>\n\n\n\n<li>Here, you can add, edit, or delete DNS records such as A records, CNAMEs, MX records, and more.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Adding a New DNS Record<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Click <strong>Add Record<\/strong> to create a new DNS entry.<\/li>\n\n\n\n<li>Choose the type of record you want to add (e.g., A, CNAME, MX), enter the necessary details, and click <strong>Add<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-managing-domains-subdomains\"><strong>2. Managing Domains (Subdomains<\/strong>)<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"creating-a-subdomain\"><strong>Creating a Subdomain<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Access Subdomain Management<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Account Manager<\/strong> > <strong>Subdomain Management<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Add a New Subdomain<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Click <strong>Add Subdomain<\/strong>.<\/li>\n\n\n\n<li>Enter the name of the subdomain you want to create (e.g., <code>blog<\/code> for <code>blog.yourdomain.com<\/code>).<\/li>\n\n\n\n<li>Choose the parent domain from the dropdown menu if you have multiple domains.<\/li>\n\n\n\n<li>Click <strong>Create<\/strong> to finalize the subdomain.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Manage Subdomain Directory<\/strong>:\n<ul class=\"wp-block-list\">\n<li>The subdomain will have its own directory under the parent domain&#8217;s <code>public_html<\/code> folder (e.g., <code>public_html\/blog<\/code>).<\/li>\n\n\n\n<li>You can upload files to this directory via the <strong>File Manager<\/strong> or FTP to manage the subdomain&#8217;s content.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"modifying-or-deleting-subdomains\"><strong>Modifying or Deleting Subdomains<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>List of Subdomains<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Under <strong>Subdomain Management<\/strong>, you\u2019ll see a list of all subdomains associated with your domains.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Modify Subdomain Settings<\/strong>:\n<ul class=\"wp-block-list\">\n<li>You can click on the subdomain name to modify settings, such as enabling\/disabling SSL or redirecting it to another URL.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Delete a Subdomain<\/strong>:\n<ul class=\"wp-block-list\">\n<li>To delete a subdomain, click the <strong>Delete<\/strong> option next to the subdomain name. This will remove the subdomain and all associated files.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-redirecting-domains-and-subdomains\"><strong>3. Redirecting Domains and Subdomains<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"setting-up-a-redirect\"><strong>Setting Up a Redirect<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Access Site Redirection<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Account Manager<\/strong> > <strong>Site Redirection<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Add a New Redirect<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Click <strong>Create New Redirect<\/strong>.<\/li>\n\n\n\n<li>Enter the URL of the domain or subdomain you want to redirect from (e.g., <code>old.yourdomain.com<\/code>).<\/li>\n\n\n\n<li>Enter the destination URL where you want to redirect traffic (e.g., <code>new.yourdomain.com<\/code>).<\/li>\n\n\n\n<li>Choose whether the redirect should be permanent (301) or temporary (302).<\/li>\n\n\n\n<li>Click <strong>Create<\/strong> to set up the redirect.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-ssl-management-for-domains-and-subdomains\"><strong>4. SSL Management for Domains and Subdomains<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-ssl-certificates\"><strong>Installing SSL Certificates<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Access SSL Certificates<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Navigate to <strong>Account Manager<\/strong> > <strong>SSL Certificates<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Generate or Upload SSL Certificate<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Select the domain or subdomain you want to secure.<\/li>\n\n\n\n<li>You can generate a free SSL certificate (e.g., Let\u2019s Encrypt) or upload a custom SSL certificate.<\/li>\n\n\n\n<li>Follow the on-screen instructions to install and configure the SSL certificate.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Force HTTPS<\/strong>:\n<ul class=\"wp-block-list\">\n<li>After installing an SSL certificate, you can configure your domain or subdomain to force HTTPS connections. This is typically done through .htaccess or within the DirectAdmin settings.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-domain-pointers-and-aliases\"><strong>5. Domain Pointers and Aliases<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"adding-domain-pointers\"><strong>Adding Domain Pointers<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Access Domain Pointers<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Account Manager<\/strong> > <strong>Domain Pointers<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Create a New Pointer<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Click <strong>Create Domain Pointer<\/strong>.<\/li>\n\n\n\n<li>Enter the domain that you want to point (alias) to another domain.<\/li>\n\n\n\n<li>Choose whether to create a <strong>Standard<\/strong> (no mail redirection) or <strong>Alias<\/strong> (full redirection) pointer.<\/li>\n\n\n\n<li>Click <strong>Create<\/strong> to finalize.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>By following this guide, you can efficiently manage both domains and subdomains in DirectAdmin, giving you control over your website structure and ensuring everything is organized as needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Managing domains and subdomains in DirectAdmin is an essential task for organizing your website structure and content. Managing Domains and Subdomains in DirectAdmin Here&#8217;s a detailed guide on how to manage both domains and subdomains using DirectAdmin: 1. Managing Domains Adding a New Domain Managing Domains (Existing) DNS Management 2. Managing Domains (Subdomains) Creating a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":518,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-directadmin"],"_links":{"self":[{"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts\/512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/comments?post=512"}],"version-history":[{"count":5,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":517,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/posts\/512\/revisions\/517"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/media\/518"}],"wp:attachment":[{"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drupalwebhosting.in\/tutorials\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}