Your Website Needs Room to Grow
You’ve built a great website on Hostinger. Maybe it’s a portfolio, a blog, or a small business site. It’s doing well, but now you have a new idea. You want to launch a separate blog, set up a testing environment for developers, or create a dedicated store for a different product line.
Starting a whole new website with a new domain feels like overkill. It’s more cost, more management, and it splits your brand identity. This is the exact moment you need a subdomain. It lets you branch out under your main domain’s umbrella, keeping everything organized and connected.
Creating a subdomain in Hostinger is a straightforward process, but if you’ve never done it before, the control panel can seem a bit daunting. This guide will walk you through every click, from logging in to verifying your new subdomain is live.
What Exactly Is a Subdomain?
Before we dive into the how, let’s clarify the what. A subdomain is a prefix added to your main domain name. It acts as a separate section of your website, often with its own unique content and sometimes even a different design.
Think of your main domain as your house. A subdomain is like adding a new room, a workshop, or a guest suite to that house. It’s part of the same property but serves a distinct purpose.
Some common examples you’ve seen include:
– blog.yourwebsite.com
– shop.yourwebsite.com
– support.yourwebsite.com
– dev.yourwebsite.com (for development)
– app.yourwebsite.com (for a web application)
From a technical perspective, when you create a subdomain like “blog,” you’re telling the internet’s directory (the DNS) that requests for “blog.yourdomain.com” should be directed to a specific folder on your hosting server, separate from your main site.
Prerequisites Before You Begin
You can’t build a room without a house. Similarly, you need a few things in place before creating a subdomain.
First, you must have an active Hostinger hosting plan and a domain name registered. This domain should be pointed to Hostinger’s nameservers. If you registered your domain with Hostinger, this is already done. If you brought your domain from another registrar, you must have updated its nameservers to Hostinger’s.
Second, know what you want to name your subdomain. Keep it short, descriptive, and easy to type. Avoid special characters or spaces. “blog,” “store,” “help,” and “test” are all good choices.
Finally, decide what this subdomain will be for. Will it host a completely different WordPress installation? Will it point to a folder within your existing hosting account? Having a clear purpose will guide the setup steps.
Accessing Your Hostinger Control Panel
Every action starts from the Hostinger dashboard. Log in to your Hostinger account. Once logged in, you’ll see an overview of your hosting plans and domains.
Click on the “Hosting” option in the top menu. This will take you to a list of your hosting plans. Find the plan that hosts the domain you want to add a subdomain to and click “Manage.”
You are now inside the hPanel, Hostinger’s custom control panel. This is your mission control for everything related to this hosting account.
Step-by-Step: Creating Your Subdomain
The entire process takes place in a few key sections of hPanel. Follow these steps carefully.
Navigating to the Domains Section
On the left-hand sidebar of hPanel, look for the “Domains” section. Click on it to expand the menu, then select “Subdomains.” This is the dedicated tool for managing all your subdomains.
You’ll be presented with a simple interface. At the top, you’ll see a form to create a new subdomain. It will typically have two main fields: one for the subdomain name and one for the document root.
Choosing and Entering Your Subdomain Name
In the first field, simply type the name you’ve chosen for your subdomain. For example, if you want “blog.yourdomain.com,” you would type “blog” here. Do not include the main domain or “http://”.
The system will automatically show you a preview of the full subdomain address below the field. This is a good way to double-check your spelling before creating it.
Setting the Document Root (The Most Important Step)
The “Document Root” field is crucial. This defines the folder on the server where the files for your subdomain will live. By default, Hostinger will suggest a path like “public_html/blog”.
This is a safe and logical default. It creates a new folder named after your subdomain inside your main website’s root directory (public_html). All files you upload for “blog.yourdomain.com” would go into this “public_html/blog” folder.
You can change this if you have a specific need. For instance, if you are using a subdomain for a separate application installed elsewhere, you would point it to that specific folder path.
For most users, especially those setting up a new WordPress site or a static page, leaving the default document root is perfectly fine.
Finalizing the Creation
Once you’ve entered the subdomain name and confirmed the document root, click the “Create” or “Add” button. The process is instant from your panel’s perspective.
Hostinger will process your request and add the necessary DNS record (an A record or a CNAME record) to your domain’s zone file. This record tells browsers that “blog.yourdomain.com” points to your server’s IP address.
You should see a success message, and your new subdomain will appear in the list below the creation form. The status might say “Pending” or “Active.”
What to Do After Creating the Subdomain
Creating the subdomain in hPanel is only half the battle. Now you need to put something there and make sure it works.
DNS Propagation: The Waiting Game
Although the record is created instantly on Hostinger’s servers, it takes time for this change to spread across the entire global internet—a process called DNS propagation. This can take anywhere from a few minutes to 48 hours, though it’s often within an hour.
During this time, if you try to visit your new subdomain, you might get an error, see your main site, or see a default Hostinger “Coming Soon” page. This is normal. Be patient.
You can use free online tools like “DNS Checker” to see the propagation status worldwide. Just enter your full subdomain (e.g., blog.yourdomain.com) and check the A record.
Uploading Your Website Files
While you wait for DNS to propagate, you can start building your subdomain site. You need to upload files to the document root folder you specified.
You have two main ways to do this. The first is via File Manager. In hPanel’s sidebar, go to “Files” and select “File Manager.” Navigate to the document root folder (e.g., public_html/blog). Here, you can upload HTML files, images, and other assets directly.
The second, more powerful method is via FTP. Use an FTP client like FileZilla, connect to your server using your Hostinger FTP credentials, and navigate to the same document root folder to upload your files.
If you’re installing WordPress on the subdomain, you can use Hostinger’s Auto Installer. Go to “Website” -> “Auto Installer” in hPanel. During the installation process, you will be asked to choose the domain. Select your new subdomain from the dropdown menu and proceed with the installation.
Troubleshooting Common Subdomain Issues
Sometimes things don’t go as planned. Here are solutions to the most frequent problems.
Subdomain Shows the Main Website
If you visit your subdomain and it displays the content of your main site, the issue is almost always in the document root. The subdomain is likely still pointing to your main public_html folder.
Go back to the Subdomains section in hPanel, find your subdomain in the list, and check its document root. Ensure it is set to a unique folder like “public_html/subdomainname” and not just “public_html.” Edit it if necessary.
Error 404 or “Site Not Found”
This error means the browser found your server (DNS is working) but the server couldn’t find any files in the specified document root folder.
First, verify you have actually uploaded an index file (like index.html or index.php) to the correct folder using File Manager or FTP. The folder should not be empty.
Second, double-check the folder path in the Subdomains settings. A simple typo in the path can cause this.
DNS Propagation Is Taking Too Long
If it’s been more than a few hours and your subdomain is still not resolving anywhere, you can try flushing your local DNS cache. On Windows, open Command Prompt as administrator and type “ipconfig /flushdns”. On Mac, use the terminal command “sudo dscacheutil -flushcache”.
Also, try accessing the subdomain from a different network (like your mobile data) or using a VPN to see if it’s just a local ISP cache issue.
Strategic Uses for Your New Subdomain
Now that you know how to create one, let’s talk about why you should. Subdomains are powerful organizational tools.
Use a subdomain to separate your primary business website from a high-traffic blog. This keeps your core site fast and lets you use different WordPress themes or plugins for the blog without conflict.
Developers can use a subdomain like “staging.yourdomain.com” or “dev.yourdomain.com” as a safe sandbox to test new features, themes, or plugins before pushing them to the live main site. This prevents public visitors from seeing broken changes.
E-commerce sites often use “shop.” or “store.” as a subdomain to host their dedicated shopping cart platform, while the main domain remains for branding and information.
If you offer a web-based tool or application, hosting it on “app.yourdomain.com” provides a clean, memorable URL for your users to access the service.
Your Digital Expansion Is Ready
Creating a subdomain in Hostinger unlocks a new level of flexibility for your online presence. It’s a simple technical task that carries significant strategic weight, allowing you to experiment, expand, and organize without starting from zero.
The process boils down to logging into hPanel, navigating to Domains > Subdomains, choosing a name, setting a document root, and clicking create. After a short wait for DNS to update, your new digital space is ready for you to build upon.
Start with a clear purpose. Use it to compartmentalize a big project, test boldly without risk, or serve a different part of your audience. With this guide, you have the map. Now go build that new room on your digital property.