How to connect custom domain to shopify?
Connecting a custom domain to your Shopify store involves a few steps. Here s a detailed guide to help you through the process:
Step 1: Purchase a Custom Domain
If you haven't already purchased a custom domain, you can buy one here.
Step 2: Add the Domain to Shopify
- Log in to your Shopify admin panel.
- Go to "Settings" on the bottom left of the dashboard.
- Click on "Domains."
- Click on "Connect existing domain."
- Enter your custom domain (e.g., www.yourdomain.com) and click "Next."
Step 3: Update DNS Settings
To point your custom domain to Shopify, you'll need to update the DNS settings where you purchased your domain. This process may vary slightly depending on your domain registrar.
For Domains Purchased Through a Third-Party Registrar:
- Log in to your domain registrar account.
- Find your domain's DNS settings (often labeled as "DNS Management," "Name Server Management," or "Advanced Settings").
Add or edit the following DNS records:
- A Record: Set the @ or main A record to point to Shopify's IP address, which is 23.227.38.65.
- CNAME Record: Set the www CNAME record to point to shops.myshopify.com.
Example:
Type | Name/Host/Alias | Points to/Value | TTL |
A | @ | 23.227.38.65 | Auto |
CNAME | www | shops.myshopify.com | Auto |
Save your DNS settings. It might take up to 48 hours for these changes to propagate.
Step 4: Verify Your Connection in Shopify
- Return to the Shopify admin panel.
- Go to "Settings" > "Domains."
- Click "Verify Connection." Shopify will check if your domain has been correctly connected.
Step 5: Set Your Custom Domain as Primary (Optional)
- Once your domain is connected and verified, you can set it as your primary domain.
- In the "Domains" section of your Shopify admin panel, find your custom domain.
- Click "Set as primary."
Troubleshooting Tips
- Propagation Time: DNS changes can take up to 48 hours to propagate, so if it doesn't work immediately, give it some time.
- Check for Typos: Ensure there are no typos in your DNS settings.
- Clear Cache: Sometimes, browser caching can interfere, so clear your cache or try accessing your site from a different browser.
Following these steps will help you successfully connect your custom domain to your Shopify store.