Support article
What Is a Subdomain and How Do You Create One
Discover what a subdomain is, what it's used for, and how to create one from the miHosting control panel with simple examples.
Introduction
A subdomain lets you create an independent address within your main domain. It’s useful for separating areas of a website, publishing an application, or making it easier to reach specific services.
For example, if your domain is domain.com, you can create addresses like:
support.domain.comclients.domain.comshop.domain.commail.domain.com
What a subdomain is
A subdomain is a prefix added in front of the main domain. In support.domain.com, the word support is the subdomain.
Even though it’s part of the same domain, it can point to a different folder or application. This lets you organize content without registering a new domain.
What a subdomain is used for
You can use it to:
- Create a client area.
- Publish a separate shop or blog.
- Install a support application.
- Set up a testing version.
- Offer content by language or country.
- Create quick access to specific services.
For example, clients.domain.com can show a different application than the site published at domain.com.
How many subdomains you can create
On miHosting hosting services you can create as many subdomains as you need, with no specific numeric limit.
Even without that limit, each subdomain can use space, processes, and other hosting resources. It’s best to only create the ones that serve a real purpose and keep the applications installed on them up to date.
How to create a subdomain
The exact name of the options may vary between DirectAdmin and cPanel, but the general process is:
- Log in to the hosting control panel.
- Go to the Domains section.
- Look for Subdomains or Subdomain Management.
- Type the prefix you want to use, for example
support. - Select the main domain.
- Specify the destination folder.
- Save the configuration.
- Wait a few minutes and test the new address in your browser.
The destination folder is the directory where the subdomain’s files will be published. Check the path carefully to avoid showing another site’s content. If instead of a subdomain you need to add a whole additional domain to your account, see how to add an additional domain.
Useful tips
Choose short names that are easy to remember and related to their purpose. Avoid creating several addresses for the same content without a real need.
After creating it:
- Check that it has an SSL certificate.
- Keep the CMS or installed application up to date.
- Include it in your backup system.
- Avoid using it as an unprotected public testing environment.
- Check that the folder permissions are correct.
Common issues
The subdomain shows an error or a blank page
Check that the destination folder exists and contains the correct files.
It shows as an insecure connection
The SSL certificate may take time to be issued, or it may need to be activated from the panel.
The subdomain opens the same site as the main domain
Check the configured path. Both are likely pointing to the same folder. If what you actually wanted was to redirect one to the other, see how to redirect a domain from cPanel.
I just created it and it still doesn’t work
The DNS configuration and the certificate may need a short time to become available.
Frequently asked questions
Do I need to register a new domain?
No. The subdomain is part of a domain you already have registered.
Does a subdomain have its own email?
You can create accounts like user@subdomain.domain.com only if the service and mail configuration allow it. They aren’t created automatically when you add the subdomain.
Can I install WordPress on a subdomain?
Yes. You can install it in an independent folder linked to the subdomain.
Does a subdomain use hosting resources?
Yes. Its files, databases, visits, and processes use the resources of the same hosting service.
Conclusion
Subdomains are useful for organizing projects and services within a main domain. At miHosting you can create as many as you need from the domains section of DirectAdmin or cPanel.
Before publishing content, check the destination folder, the SSL certificate, and the security of the installed application.