How to create a subdomain in Direct Admin

Sometimes hosts don’t need a separate and special domain, or we don’t need a domain to run a script, or we even want to manage parts of the site, such as a store or a blog, with WordPress or different cms. In such a situation, the best solution is to create a subdomain in the host in such a way that we create a subdomain from the main domain. In this training from the Fa Host knowledge base, we will fully examine how to create a subdomain in Direct Admin so that every user can have a subdomain in their host’s control panel without buying a new host and different sections. His site, such as blog, store, etc., separately and without buying a new domain with the desired script. At the end of this article, the user will be fully acquainted with topics such as setting up a site on a subdomain and the benefits of using a subdomain in Direct Admin. If you are using the CPanel host, follow the tutorial on creating a subdomain in the CPanel host.

In this educational article, you will be fully acquainted with the following topics:

 

  • What is a subdomain?
  • Creating a subdomain in Direct Admin
  • What is our subdomain address?
  • I am setting up the site on the subdomain.
  • What is the difference between subdomain and subfolder?
  • Direct admin subdomain problem
  • Frequently asked questions about Direct Admin subdomain.
Many users do not fully understand the difference between domain extension, subdomain, and park domain. They are always faced with the question of when to use a subdomain and when to use a domain extension. To better understand these differences, you can read the educational article What is the difference between a subdomain, an Eden domain, and a parked domain.

It is possible to create a subdomain in the host.

Let’s first explain what a subdomain is? As mentioned above, in fact, the subdomain is an arbitrary name that is written with a dot before the main domain of the site. Be careful that the subdomain’s name must be close to the content you want, for example, for the knowledge base or blog section. Using words like blog or knowledge base or words like store are used for the store section. Finally, after defining the subdomain in the direct host admin, it is time to upload the desired content, which we will explain in detail below. Creating a subdomain is very simple, but be careful. First, check that the half-host servers are set and published on the main domain for which you intend to create a subdomain. Then proceed from the Subdomain Management section of Direct Admin, which will be explained in detail below.

In creating a subdomain, we don’t need to set half-host servers, but it is enough to set and publish a half-server on the main domain.

How to create a subdomain in Direct Admin

Half of the hosting servers must be set up and published on the main domain. Setting up a site on a subdomain is not a complicated task. You only need to go through the following steps:

  1. To start the steps and create a sub-domain in Direct Admin, you must first follow the Direct Admin login tutorial and enter the control panels of your host
  2. Click on the Subdomain Management option in the Account Manager section to be redirected to the subdomain settings page.
    How to create a subdomain in Direct Admin
  3. On the page that opens, click on the green ADD SUBDOMAIN button.
    How to create a subdomain in Direct Admin
  4. After clicking, you will see a page similar to the image below. In this section, you can define your desired subdomain on Host Direct Admin. In the box that opens, write the subdomain you want. Then click the ADD SUBDOMAIN button.
    Note: In the field opposite Sub-Domain, only the name of the sub-domain (sub-section). For example, we entered the MIZBANFA sub-domain.

    How to create a subdomain in Direct Admin

  5. Then you will see a green box stating that the subdomain has been successfully created in Host Direct Admin.
    How to create a subdomain in Direct Admin

The subdomain you defined will be added to the list, and a directory with the same name will be created in the host’s file manager. The information about the subdomain, including the template or anything, should be uploaded to this directory.

Note: If you want to delete the subdomain, select the check box on the left side of the subdomain on the top page and click the Delete Selected button. By doing this, only the subdomain will be removed from the list, but its main directory is still available in the file manager.

Up to this point, you have defined only the subdomain, and the steps are not finished. In the next step, a directory with the name of the subdomain you defined will be created in the File Manager section of the Direct Admin host.

How to create a subdomain in Direct Admin

As you can see, we have a directory called mizbanfa in this section.

How to create a subdomain in Direct Admin

The steps to create a subdomain in Host Direct Admin have been completed. You can manage your cms by referring to this directory.

What is our subdomain address?

The question that arises after creating a subdomain in the host is, what will the address of our subdomain look like? Suppose that the main domain is mizbanfa.net, and according to the mentioned steps, we have defined a subdomain with the name blog. After this, to access the subdomain’s content, your address will be blog.mizbanfa.net. The name selected for the subdomain is separated from the main domain by a dot. So, for example, if you want to install WordPress on a subdomain, you must enter an address in the format mentioned in the browser.

I am setting up the site on the subdomain.

As mentioned before, you should upload your desired content in the relevant path after defining the subdomain on the Direct Admin host. For this purpose, click on the File Manager option again from the main page of your direct admin. As you can see, a directory with your desired name has been created in the main path, public_html. You can install your desired script or upload desired content in this section.

You must be asking how to put WordPress or any information on this subdomain after creating the subdomain?

Installing WordPress on a subdomain, direct admin , how to install WordPress on a cPanel subdomain

What is the difference between subdomain and subfolder?

Do many users ask what the technical difference between subdomain and subfolder is? Be careful. By creating a subdomain and working on it, no SEO points will be noticed on the main domain, and it is only possible that the Alexa rank will change, and your input will increase. In fact, from the point of view of Google and search engines, the subdomain and the main domain are completely separate websites. That’s why blogging systems use this style. But the nature of the subfolder is exactly the opposite. In the picture below, you can see the same type of subdomain and subfolder addressing. In any case, both branches of the main domain are taken into account.

 

Direct admin subdomain problem

DNS: Some users ask if special settings and configurations are needed? Unlike the steps to park a domain or add a domain, you do not need to set a half-server for a sub-domain because the half-servers are already set on the main domain, and since the sub-domain is a sub-branch of the main domain, you need to do these steps. you will not have

Error 404: Always after creating a subdomain, when you enter the corresponding address in the browser, you will encounter a 404 error, and it is completely normal because no information has been entered in this path yet. So don’t worry at all. After installing cms, this error will be fixed.