Shopify domains: connect or change your store address
Connect a domain to Shopify or change the primary address safely. Check DNS, secure access and redirects so customers still reach your store.
- Published
- Last updated
To connect a Shopify domain, point its DNS records to Shopify, add it in Settings > Domains and confirm secure access before making it primary. Keep the old domain connected when changing your store address so customers following existing links can still reach you.
Choose the right domain action
Use an existing domain by connecting it to Shopify. For a new address, buy a domain. Transferring its management and changing your primary address are separate decisions.
| Action | What changes | When to choose it |
|---|---|---|
| Buy through Shopify | You register a new domain and manage it in Shopify | You need a new address and want domain administration beside your store settings |
| Connect an external domain | You point the storefront records to Shopify while keeping the existing provider | You already own the address and want to keep its registration elsewhere |
| Transfer to Shopify | Shopify takes over management of an eligible domain | You want to move domain administration and renewal into Shopify |
| Change the primary domain | You choose the connected address customers see | You are replacing the store’s public web address |
To buy through Shopify, open Settings > Domains > Buy new domain. Search for the name, review the purchase summary and complete registration verification. Domain costs depend on the extension, such as .com, .shop or .store.
Compare annual renewal costs as well as the first purchase price. Shopify charges renewal separately from the store subscription. Confirm whether your chosen extension includes WHOIS privacy, which hides personal registration details from public records. Shopify’s domain purchase guide explains the available options and registration requirements.
For a transfer, check eligibility and transfer restrictions before unlocking the domain or requesting its authorisation code. Connect it first, then follow Shopify’s transfer procedure. Save all custom DNS records beforehand: Shopify doesn’t copy them automatically. Plan how to restore email records with your email provider, and use a contact email outside the transferring domain.
Your custom domain is the address customers use. Your original myshopify.com address also identifies the store for account access and support. Keep that original identifier even after changing the public address, as Shopify’s business-settings guidance explains. A primary-domain change doesn’t require creating another store.
Understand the records before editing
The domain name system (DNS) connects a name to the services that use it. Nameservers identify where its authoritative records are managed. The registrar that bills you for the domain and the provider hosting those records can be different companies.
An A record points to an IPv4 address. An AAAA record does the same for IPv6. A canonical name (CNAME) record points a name such as www to another hostname. A TXT record can verify ownership or hold email authentication information. Shopify’s domain terminology explains these record types.
Mail exchange (MX) records route incoming email. Sender Policy Framework (SPF) and DomainKeys Identified Mail (DKIM) help authenticate outgoing mail. Preserve these and other email records when changing storefront routing. An email-related CNAME with a different name from www has a separate job.
Connect the domain and verify secure access
Before connecting an external domain, confirm that it is registered to you and active. You need access to its DNS provider and permission to manage domains in Shopify. Save a private export or screenshot of the existing records, including their names and values, so you can restore the previous setup.
For a typical root domain, Shopify documents the following records. example.com is an illustrative domain, and @ means its root.
| Record | Name | Value |
|---|---|---|
| A | @ | 23.227.38.65 |
| AAAA | @ | 2620:0127:f00f:5:: |
| CNAME | www | shops.myshopify.com. |
- Open the DNS settings at the provider your nameservers use. Keep an existing working external DNS host in place.
- Edit the root A and AAAA records to the values above. Remove conflicting root A or AAAA entries after saving their previous values. Preserve records for other services.
- Set the
wwwCNAME toshops.myshopify.com.. Keep its final period where the provider requires it, and leave the default time to live (TTL). - In Shopify, open Settings > Domains > Connect existing domain. Enter the root name, such as
example.com, withoutwww. Select Next, then Connect domain. - Open the domain’s details. Wait for Connected status and confirm that its secure certificate is ready before changing the primary address.
These values and steps follow Shopify’s manual connection instructions. If the provider rejects the shortened IPv6 value, use 2620:0127:f00f:0005:0000:0000:0000:0000.
For Cloudflare-hosted DNS, open the domain’s DNS > Records page and select Edit beside the existing record. Save each change. Set the Shopify storefront records to DNS only, with proxying off. Cloudflare documents the record editing controls.
Shopify automatically provides a free Transport Layer Security (TLS) certificate, often called a Secure Sockets Layer (SSL) certificate. You don’t need to buy or upload one. Issuance depends on the domain connection, so a pending status doesn’t promise a particular finishing time. Shopify allows up to 48 hours for issuance after connecting an external domain.
Open the storefront over HTTPS and confirm that the browser reports a secure connection without a warning. Check both the root address and www. If a page loads insecure images or fonts from another host, change those asset URLs to HTTPS. Shopify’s secure-connection guide covers certificates and external assets.
Change the primary domain without losing links
Set the new domain as primary only after it shows Connected and opens securely. The previously primary domain becomes a redirect domain and stays connected to the store.
- Go to Settings > Domains and select the new address.
- In the Type row, select Change. Choose Primary domain, then Change domain type.
- Confirm that the old domain is still connected as a redirect domain. Keep its registration renewed and its DNS pointing to Shopify.
- Open a known old product link in a fresh browser session. Confirm that it reaches the intended product on the new primary address.
Shopify’s primary-domain instructions describe this change. If you use international markets, review their domain assignments first. Market subfolders based on the primary domain also acquire the new address.
Changing a domain and changing a page path solve different problems. Suppose a product moves from example.com/products/linen-shirt to example.net/products/linen-shirt. Test that old link after switching domains. If its handle also becomes /products/relaxed-shirt, add a separate URL redirect for the old path.
Create that redirect in Content > Menus > View URL Redirects > Create URL redirect. Enter /products/linen-shirt in Redirect from and /products/relaxed-shirt in Redirect to, then save. Shopify’s redirects apply to broken URLs, so the old path must no longer load an active page. Reserved paths have restrictions, and market subfolders can require their own redirects. Use Shopify’s URL redirect guidance for those cases.
Check a product link from navigation and a link in a customer notification. Update hard-coded addresses in menus, campaigns and message templates, then test their destinations. For the wider catalogue and checkout launch sequence, use the Shopify store setup guide.
Fix connection and certificate problems
Start with the domain’s exact status in Settings > Domains, then check the records for that same hostname. Use the symptom to choose the first correction.
| Symptom | First check | Correction and expected result |
|---|---|---|
| Domain remains unconnected | Check registration status and the authoritative DNS host | Renew or verify registration if needed. Edit records at the active DNS host, then confirm Shopify reports Connected |
| Some visitors reach another site | Look for conflicting root A or AAAA records | Keep the Shopify storefront values and remove conflicting entries. Retest from another connection after propagation |
| New domain redirects to the old address | Check which domain is primary | Make the connected new address primary, then reopen a product link |
| SSL pending or TLS pending | Check the time since the last DNS change and any record warning | Allow propagation and issuance with correct records in place. Avoid repeatedly changing valid records |
| SSL unavailable or a browser security warning | Check storefront records, proxy status and certificate restrictions | Turn off a Cloudflare proxy on storefront records. Resolve certificate restrictions, then retest HTTPS |
Shopify can assign a valid regional A record with a different final number. Follow the address shown by Shopify for your domain instead of replacing a working connection solely because it differs from the default.
If certification authority authorisation (CAA) records restrict issuance, ensure they permit the certificate authorities Shopify lists. Ask the domain provider to investigate a broken Domain Name System Security Extensions (DNSSEC) configuration or unreachable nameservers. Shopify’s domain troubleshooting guide connects these warnings to their checks.
Contact the domain provider when you cannot edit records or the authoritative DNS answers differ from saved settings. Contact Shopify when a Shopify-managed domain fails, or correct external DNS still leaves a Shopify connection or certificate error beyond its stated waiting period.
Supply the domain, exact error and elapsed time since the change. Include a record snapshot and checks performed. Redact account details, verification tokens and transfer codes before sharing screenshots. After recovery, reopen the old product link and confirm that the new address loads securely.
Give your store its own shopping agent
Customers ask in their own words. Your agent finds, compares and checks out from your catalogue, right on your site.