Can I run the Shopify store in a domain subdirectory/subfolder?

Topic summary

Main issue: Run a Shopify storefront at www.example.com/store (a subdirectory) instead of a subdomain (shop.example.com).

What’s supported: A common setup is connecting a subdomain to Shopify via DNS (CNAME), e.g., shop.example.com, then linking to it from the main site. The referenced Shopify docs cover connecting a subdomain. Contributors note they haven’t seen Shopify run directly from a subdirectory on the root domain and suggest checking with the third‑party host if any reverse-proxy approach is possible.

Alternative: Use Shopify’s Buy Button to embed products/checkout on existing pages of the main site without moving the whole storefront under a subdirectory.

SEO concern: Another participant prefers a subdirectory for perceived SEO/visibility gains and asks for any progress. No new method enabling a true subdirectory was provided in the thread.

Open questions: Whether it’s permissible or advisable to copy Shopify landing/product HTML pages under /store while keeping checkout on a subdomain remains unanswered. Current guidance points to subdomain integration or Buy Button embeds; subdirectory support appears unavailable or unconfirmed.

Summarized with AI on December 28. AI used: gpt-5.

Hello!

I have the main website on the root domain www.example.com and I want to run Shopify store (only a product page) on www.example.com/store .

Does Shopify support it? Can it work within a subdirectory?

I am a little confused with this question and can’t find any needed information in the Shopify documentation.

Is Shopify support these connections? Or it can be only a root third-party domain or subdomain?

I appreciate any help, links, and advice. Thank you!

Hi @DariaShypulia ,

If www.example.com is hosted by another third-party (DreamHost, GoDaddy, BlueHost, etc..) then I believe you could do something similar by adding a CNAME record for a subdomain, like shop.example.com, where Shopify loads on. Then, you could link to shop.example.com from www.example.com to load the Shopify store. Please see the following documentation for reference:

https://help.shopify.com/en/manual/domains/add-a-domain/connecting-domains/connect-subdomain

I’m not sure if you can add it specifically to a folder on www.example.com without setting up the subdomain, this would probably be a question for your third party hosting provider’s support team to see if you can set it up this way.

FWIW, I’ve worked on a few hundred Shopify accounts, and I don’t believe I’ve seen any Shopify sites with the setup you’re after, but I’ve seen many sites load Shopify on a subdomain of the main domain.

One thing that you may want to look into is simply adding a Buy button to your existing domain’s product landing page:

https://www.shopify.com/buy-button

I understand your point, but I’m facing the same issue.

I want to add a Shopify store under a subdirectory, such as www.example.com/store , instead of shop.example.com because I want to take advantage of the SEO and visibility benefits of www.example.com . Having the store under a subdirectory also improves organic traffic.

Is there any progress on this issue?

Alternatively, is it allowed to copy the Shopify landing page, product HTML pages, etc., under www.example.com/store , while keeping the checkout pages on shop.example.com for secure payments?

Thank you.