Setup Shopify store on a sub domain

In some usecase, we might need to connect the shopify store in sub domain ( For example: ) instead of root domain ( )

In shopify documentation, they have explained about that sub domain integration but I think some steps are missing in that documentation. I created this article to explain about those missing information

In our case, we have our domain in and the DNS interface will be more over common to other Domain providers. You can also check your domain provider documentation for DNS setting.

Step 1:

Login into your domain name provider website. In order to connect sub domain with shopify, we need to add two records in DNS setting of your domain. For example: let us consider, we like to have shopify in

1) A record with host as ‘shop’ and points to shopify IP address ( ie )

Type – A record
Host – shop
Value –

2) CNAME record with host as ‘shop’ and points to ‘’

Type – CNAME record
Host – shop
Value –

Step 2:

Login into your shopify account and navigate to ‘Online store -> Domains’. There will be option called ‘Connect existing domain’ and click that option.


It will show text field to add your existing domain. In our case, it is ‘’

Once you add it and save it.

Step 3:

Navigate to ‘Online store -> Domains ‘. You can see that newly added domain (‘’ ) in that domain list. We need to change our newly added domain as primary domain in shopify, then only we can access our shopify store in that sub domain ( )

Click that ‘change primary domain’ link at top right corner and it will show option to choose the primary domain and you need to select our sub domain

That’s all. Shopify store is now connected with your sub domain.

Note: DNS propagation will take some time 24-48 hours. Mostly it will be connected within few minutes. For rare cases, it will take 24-48 hours

Related posts