A subdomain like store.yourbusiness.com lets you launch your ecommerce site under your existing domain without buying a new one. The setup takes less than 15 minutes from cPanel.
This guide walks you through creating the subdomain, pointing it to your store platform, and enabling SSL — whether you use WooCommerce, PrestaShop, Shopify, or any self-hosted solution.
What Is a Subdomain and When Should You Use One for a Store?
A subdomain is a branch of your main domain separated by a dot on the left: store.domain.com. Technically, it's independent of the main site — it can run in a different folder, on a different server, or even on a different platform.
It makes sense to use one when:
- Your website already exists and you want to add a store without replacing it.
- You use different platforms for the blog and the store (e.g., WordPress vs. PrestaShop).
- You want clean URLs like
shop.mybusiness.com.mxinstead ofmybusiness.com.mx/shop. - You need to isolate the SSL certificate or cache configuration for the ecommerce section.
If you're still choosing a domain for your store, check the domain guides for ecommerce in Mexico to compare extensions and registrars.
Step 1 — Create the Subdomain in cPanel
Most hosting providers in Mexico (Neubox, HostGator MX, SiteGround, etc.) use cPanel. The process is the same across all of them.
- Log in to cPanel (usually
yourdomain.com/cpaneloryourdomain.com:2083). - Find the Domains section and click Subdomains.
- In the Subdomain field, type the prefix you want (e.g.,
storeorshop). - Select your main domain from the dropdown.
- cPanel automatically suggests a folder at
public_html/store. You can keep it or change it. - Click Create.
cPanel creates an A record pointing to the same hosting IP and generates the root folder. Done in seconds.
Step 2 — Point the Subdomain to Your Store Platform
This step depends on where your store lives:
Store installed on the same hosting (WooCommerce, PrestaShop, OpenCart)
Install the platform directly in the folder cPanel created (public_html/store). The subdomain already points there. No DNS changes needed.
Store on Shopify (external domain)
Shopify requires you to point a CNAME record to shops.myshopify.com.
- In cPanel, go to DNS Zone Editor.
- Delete the A record cPanel created for your subdomain.
- Add a CNAME record: name =
store, value =shops.myshopify.com. - In your Shopify admin, add
store.yourdomain.comas an external domain.
Store on another server (VPS, dedicated server)
- In cPanel's DNS Zone Editor, edit the A record for the subdomain.
- Change the IP to your store server's public IP.
- Save and wait for propagation (5 minutes to 48 hours; usually under 1 hour).
Step 3 — Enable SSL on the Subdomain
Never launch a store without HTTPS. Browsers and Google flag payment sites without SSL as insecure, and customers abandon their carts.
| Method | Cost | Steps |
|---|---|---|
| cPanel AutoSSL (Let's Encrypt) | Free | Automatic on most hosts; wait ~10 min after creating the subdomain |
| Wildcard SSL (*.yourdomain.com) | Varies by provider | Covers all subdomains; install once |
| SSL from Shopify / SaaS platform | Included in plan | Platform issues it automatically after CNAME verification |
To verify: open https://store.yourdomain.com and check for the padlock in the browser. If you see a certificate error, wait a few minutes or renew manually from SSL/TLS in cPanel.
Common Mistakes and How to Avoid Them
- 404 error on the subdomain: the folder is empty. Install your platform or upload a test
index.php. - Subdomain doesn't load after 24 hours: check that the A or CNAME record is correct in the DNS Zone Editor. Contact a hosting specialist if DNS propagation stalls.
- SSL not issued automatically: happens when the subdomain points to an external server (external CNAME). In that case, the destination platform is responsible for SSL, not your hosting.
- WooCommerce redirects to the main domain: in WordPress under Settings → General, update both the WordPress URL and Site URL to your subdomain.
- Session cookie conflicts: if the main domain and subdomain share cookies, configure PHP or your platform to scope the session cookie to the subdomain only.
Key Takeaways
- A subdomain lets you launch an online store without buying an extra domain or breaking your main site.
- In cPanel, creating the subdomain takes under two minutes; pointing DNS is the trickier part when the store lives on another server.
- Always enable HTTPS before going live: use cPanel AutoSSL (free) or the SSL included with your ecommerce platform.
- For Shopify or other SaaS platforms, the key step is creating a CNAME record, not an A record.
- After creating the subdomain, update the URLs in your platform settings to prevent incorrect redirects.
Need someone to configure your subdomain and store from start to finish? The team at elenlace.com helps Mexican businesses launch ecommerce sites fast and without DNS headaches.
FAQ
How many subdomains can I create on my hosting plan?
It depends on your plan. Most shared hosting plans in Mexico allow between 10 and unlimited subdomains. Check the limits in your plan description or ask your provider.
Does a subdomain affect the SEO of my main domain?
Google treats subdomains as separate sites. That means domain authority doesn't automatically transfer. If you've already built SEO on your main domain, consider using a subdirectory (mydomain.com/store) instead to consolidate link juice.
Can I use a subdomain with Mercado Shops or Tiendanube?
Yes. Both platforms let you connect a custom domain or subdomain. The process is similar to Shopify: create a CNAME in your DNS pointing to the platform, then verify it from the store dashboard.
Do I need a separate SSL certificate for the subdomain?
Yes, unless you have a wildcard certificate (*.yourdomain.com) that covers all subdomains. If you use cPanel with AutoSSL, the system typically issues one automatically. If the subdomain points to an external server, that server is responsible for its own SSL.
Useful resources
Other providers and guides worth comparing: