Skip to main content
All CollectionshPanelDomains
How to create and delete subdomains
How to create and delete subdomains

Creating, managing, and deleting subdomains at Hostinger

Updated over a week ago

Subdomains are useful for organizing parts of your website and having neatly constructed links at the same time. For example, your online store can be hosted in the subdomain shop.domain.tld.

Subdomains can also act as fully independent websites.

The information given below doesn't apply if the root domain is connected to Hostinger Website Builder. In this case, a subdomain should be created as a DNS record. Check out this guide: How to create a subdomain if the root domain is connected to the builder 💡

How to create a subdomain

To create a subdomain, go to the Websites section on hPanel and click on Dashboard next to the website in question:

Then, search for Subdomains on the left sidebar and click on it:

Under Create a New Subdomain, enter a name for your new subdomain and select if you want to create a custom folder or directory for it.

We recommend keeping the default directory for your subdomains 💡

Finally, click Create:

Once you have created the subdomain, you can add it as a website this way: How to add a website 💡

NOTE

  • Creating wildcard subdomains is not supported at the moment.

How to point a subdomain

If your domain is pointed elsewhere by nameservers, you need to point your subdomain to the IP address of your hosting plan so the subdomain works properly. Follow these steps:

  1. Log in to the platform to which your domain is pointed via nameservers, access your domain's DNS zone there, and create a new A record:

DNS record type

A

Host

Enter the name of your subdomain; for example, insert shop for shop.domain.tld

Value

Copy and paste the IP address of your hosting plan

TTL

Leave the default or choose the smallest available value

You can check the instructions on how to change the DNS zone for the most popular providers or contact the service's support if you need further assistance.

Any changes made to the DNS zone trigger propagation, which may take up to 24 hours 💡

How to check existing subdomains

In your Hostinger account, go to the Websites section and click on Dashboard next to the website connected to the root domain:

Then, search for Subdomains on the left sidebar and click on it:

Scroll down to the List of Current Subdomains. Here, you can see the complete list of subdomains, as well as the directory where the subdomain's files are located:

How to delete a subdomain

Deleting a subdomain permanently deletes the website located on this subdomain, along with the associated website files, databases, and emails.

For this reason, it is strongly recommended that you download the file backups and databases as well as backup your email messages before proceeding.

Once all is good to go, press the Delete button in the List of Current Subdomains:

Alternatively, you can delete a subdomain this way: How to delete a website from a hosting plan.

Did this answer your question?