how to create subdomain in hostinger
To create a subdomain in Hostinger, follow these steps:
✅ Step-by-Step: Create a Subdomain in Hostinger
- Log in to Hostinger
- Go to https://hpanel.hostinger.com/ and log in to your Hostinger account.
- Go to the Website’s hPanel
- From the dashboard, find your domain and click “Manage”.
- Navigate to Subdomains
- In the left sidebar or under the “Domains” section, click on “Subdomains”.
- Create the Subdomain
- Fill in the following:
- Subdomain: Enter the prefix you want (e.g.,
blog,shop,dev). - Domain: Select the main domain (e.g.,
example.com). - Document Root: This will be auto-filled (e.g.,
/public_html/blog), or you can customize it.
- Subdomain: Enter the prefix you want (e.g.,
- Click “Create”.
- Fill in the following:
- Wait for DNS Propagation
- It may take a few minutes (up to 24 hours) for DNS to propagate, though it usually works within minutes.
🔧 Optional: Point to Custom Content
- Upload Files: Go to File Manager >
public_html/subdomain_name/and upload your files. - Install WordPress or Other CMS: You can install CMS via Auto Installer in hPanel under the new subdomain path.
📌 Example
To create shop.example.com, you:
- Enter
shopas the subdomain. - Select
example.comas the main domain. - Hostinger will create the folder
/public_html/shop/.
Let me know if you want to link a subdomain to an external service (e.g., Shopify, Webflow, etc.), or set up DNS manually.