Use your Shopify domain with Ploy
Put Ploy pages on the domain Shopify serves today and keep your store there too.
Use this guide when Shopify serves example.com and you want Ploy pages there. Your store keeps its URLs, so search results and old links still reach the same products. Checkout stays on Shopify.
Want to leave your main domain on Shopify? Put your Ploy pages on a subdomain such as go.example.com instead. See Shopify.
Connecting your main domain changes who serves it
Once
example.compoints at Ploy, every request reaches Ploy first, not only requests for new pages. Ploy then serves your pages and passes everything else to Shopify.
Before you start
- Build and publish your Ploy pages first. Check them on their Ploy address before you move the domain.
- Check your plan. Connecting a custom domain needs a plan that includes one. See Custom Domains.
- Know where your DNS lives. If you bought the domain through Shopify or transferred it there, edit its records in Shopify under Settings, then Domains. Select the domain, then select Manage in DNS settings (see Editing the DNS settings for your Shopify-managed domain). Otherwise, edit them at your domain provider.
- Save your current records. Take a screenshot of every record for
example.comandwww, including email and IPv6 records, so you can roll back. - List the store URLs that get traffic. Shopify stores use paths such as
/products,/collectionsand/cart. Search Console shows which ones get visits. See Analytics. - Pick a quiet time for the DNS change.
Keep store pages on your main domain
Ploy serves the pages you choose, such as your homepage and blog. Every other request goes to a second Shopify address, such as www2.example.com, that serves your store without redirecting. Ploy keeps the path and query string, so /products/tee?variant=123 reaches the same product, and buyers stay on example.com until checkout.
Start small. For a homepage-first move, Ploy can serve only / while Shopify keeps products, collections, cart, accounts and everything else. Rehearse on a spare subdomain such as ploy-test.example.com, not your Shopify alias.
Step 1: Create a Shopify alias domain
- At your DNS provider, add this record. Leave your main domain,
wwwand email records as they are.Type Name Value CNAME www2 shops.myshopify.com - In Shopify, go to Settings, then Domains, select Connect existing domain and enter
www2.example.com(see Connecting a third-party subdomain to Shopify). - Select the new domain, choose Change domain type, then Alias domain. Don't choose Redirect domain, and don't make it your primary domain. Shopify's domain types page explains that alias domains don't redirect to the primary domain.
- Wait until Shopify shows the domain as connected with HTTPS ready.
- Open
https://www2.example.com, a product page and/cart. Each should load your store and stay onwww2.example.com. You can also check from a terminal:Look for acurl -sSI https://www2.example.com/ curl -sSI https://www2.example.com/cart200status and nolocationheader.
Don't use your myshopify.com address
Shopify redirects
myshopify.comand ordinary extra domains to your primary domain (see Change your primary domain). Once your primary domain points at Ploy, those requests come back to Ploy and loop. If the Alias option is missing, contact Shopify or support@ploy.ai before you move any traffic.
Step 2: Add the paths Ploy serves
Connect your test hostname to your Ploy site (see Add a domain). On its page in Ploy, open Path routing and select Add path for each Ploy page or section.
- For the homepage, add
/with Only this page. Choosing every page under/would send the whole store to Ploy. - For a section, such as
/blog, use This page and every page under it. - Paths are checked top to bottom, and the first match wins. Put Shopify exceptions, such as privacy and consent pages, above broader Ploy paths.
For example:
| Path | Match | Destination |
|---|---|---|
/pages/data-sharing-opt-out | Only this page | Another URL: https://www2.example.com |
/ | Only this page | This site |
/pages | This page and every page under it | This site |
| Everything else | Any other path | Another URL: https://www2.example.com |
Open each Ploy page on the test hostname and check its styles, images and forms load.
Step 3: Send everything else to Shopify
Edit the Everything else row at the bottom of Path routing. It's called All pages until you add a path.
- Set Destination to Another URL and enter
https://www2.example.comwith no path or trailing slash. - Leave Redirect instead off, so Ploy proxies the request and the address bar stays on your main domain.
- Under More options, turn Keep the original domain in the Host header off. Shopify then receives the alias name it knows. With it on, Shopify can return a 403 error.
Use the same URL and Host header setting on any Shopify exception from Step 2. Whether Ploy Analytics runs on proxied Shopify pages is a separate choice. Make it to fit your analytics and consent setup.
You can also ask Ploy's Agent to prepare the routing in a chat:
Set up example.com so Ploy serves only these paths: /, /about, /blog.
Send everything else to https://www2.example.com with "Keep the original
domain in the Host header" off. Keep /pages/data-sharing-opt-out on Shopify,
above the broader /pages rule. Rehearse on ploy-test.example.com first and
show me the routing changes before you apply them.Ploy's Agent shows a proposal, not a saved change. Open Review changes, check the hostname, paths, order and the Everything else row, then select Apply changes. Return to Path routing and confirm what was saved. See Prepare a routing change with Ploy.
On the test hostname, open a product, a collection and the cart. They should load with images and styles, and add to cart should work.
Step 4: Point search engines at your main domain
Shopify can write the alias address into its pages. Before launch, open a product and a collection page through the test hostname and view the page source:
- Canonical tags should use
https://example.com, notwww2.example.com. If they don't, change the canonical tag in your Shopify theme. Back up the theme first. - Social and structured data, such as
og:urland product markup, should use the same address. - Sitemaps should list Ploy pages and Shopify products on your main domain. Keep them current as you add products. Ploy's Agent can help set this up.
- Internal links in your theme and menus should use your main domain or relative paths.
Ploy passes Shopify's pages through as they are. It doesn't rewrite Shopify's canonical tags or links for you. Skip the optional checkout redirect in the Shopify guide. It's for a standalone cart page and would send buyers away from the store pages you keep.
Step 5: Connect your main domain
- Open your Ploy site, select Domains, then Add domain, and enter
example.com. See Add a domain. - When setup asks how to route the domain, choose Serve only some pages from this site, enter
https://www2.example.comand list your Ploy paths. Then check the production paths and the Everything else row match your test hostname, including the Host header setting. - Add the records Ploy shows, exactly as shown. Leave the
www2CNAME and email records as they are. - Wait for Check DNS records, Issue SSL certificate and Go live to finish.
- Choose whether
example.comorwww.example.comis your main address with Set as primary domain. Ploy redirects the other one to it. See Choose a primary domain.
Keep www2.example.com connected in Shopify as an alias. If setup stalls with a Cloudflare 1034 error, contact support@ploy.ai before you remove domains from Shopify. Then go to Test.
Add Ploy pages later
When you publish a new Ploy page, add a path for it in Path routing. Until you do, your main domain sends that path to Shopify, which shows a 404 even though the page is live on Ploy.
Test
Test in a browser. Shopify can rate-limit scripted checks.
- Open
example.comandwww.example.comand check your Ploy pages load. - Open a product, a collection and the cart. They should stay on your main domain.
- Add a product to the cart and go to checkout.
- Check shipping, taxes, accounts, policies and privacy controls for each country you sell to.
- Open an old link with a variant, discount or tracking parameter and check what reaches the store.
- Check canonical tags, sitemaps and the
wwwredirect use your main domain.
If one device still shows the old store, check example.com and www from another network or a public DNS lookup, and check SSL. Records can take time to reach every network. If buyers can't reach your pages or store, roll back. See Troubleshooting and the Launch Checklist.
Roll back to Shopify
To put the store back on your main domain:
- Set the records back to the values you saved. On a Shopify-managed domain, select Reset to default in its DNS settings instead. Shopify's defaults are:
Type Name Value A @ 23.227.38.65 CNAME www shops.myshopify.com - In Shopify, go to Settings, then Domains, and check that
example.comis connected and is your primary domain. If you removed it, select Connect existing domain, enter it and make it primary again. Shopify doesn't take the domain back on its own when DNS points at it again, so skipping this step leaves the store offline. - Remove the domain from Ploy. On the domain's page, open the ⋯ menu and select Remove domain. See Custom Domains.
- Check from another network or a public DNS lookup. A device that visited the Ploy version can keep showing it until its DNS cache expires.
FAQ
Can I build new pages with my existing domain?
Yes, in two ways. Keep Ploy pages and store pages on your main domain, with Ploy in front and Shopify behind it on an alias domain. Or leave your store alone and put Ploy pages on a subdomain such as go.example.com.
Can I move my store to a subdomain instead?
We don't recommend it for a store that gets search traffic. Moving the store to a subdomain such as shop.example.com changes every product and collection URL, so rankings and old links depend on redirects. This guide keeps those URLs as they are.
Why not proxy to my myshopify.com address?
Shopify redirects your myshopify.com address to your primary domain. When your primary domain points at Ploy, Ploy sends the request back to Shopify and the two loop. An alias domain doesn't redirect, so Ploy can proxy to it.
Why does Shopify return a 403 error through the proxy?
Check that Keep the original domain in the Host header is off on the Everything else row and on any Shopify path. With it on, Shopify receives your main domain instead of the alias and can refuse the request.
Will my Shopify store go offline?
No. Your store stays connected in Shopify and keeps working through the alias while DNS changes.
What happens to my product and collection URLs?
They stay the same. Ploy passes them to Shopify with their path and query string, so old links and search results still reach the same product.
I published a new Ploy page. Why does it show a Shopify 404?
Your main domain sends paths that match no rule to Shopify. Add a path in Path routing for the new page, then check it on your main domain.
I switched my DNS back to Shopify. Why is my store still down?
Shopify doesn't take a domain back on its own when DNS points at it again. Reconnect the domain in Shopify under Settings, then Domains, and make it your primary domain again. If one device still shows the Ploy page while others show the store, its DNS cache hasn't caught up yet.
Do I need to change my email records?
No. Leave your MX and TXT records as they are. Change only the records that Ploy shows you for the website.
Why does Ploy show a Cloudflare 1034 error?
Shopify runs on Cloudflare, and a 1034 error can mean another Cloudflare-based host still claims the domain. Contact support@ploy.ai before you remove domains from Shopify.