Skip to content

How to Connect Your Own Domain to WooCommerce

A practical walk-through for pointing a domain you own at a WooCommerce shop, from DNS records to HTTPS and order emails, with a checklist to test the result.

10 min readUpdated Nov 27, 2026By XPASS Editorial Team

How to Connect Your Own Domain to WooCommerce

A WooCommerce store is a WordPress site with a shop layer on top, so connecting your own domain follows the same logic as any WordPress site: the domain name has to lead to the server that holds your files, and the shop has to know that this name is now its official address. Many store owners start on a temporary address supplied by a hosting company or a staging tool, and only later decide to move to a brand name such as yourshop.com. The move looks simple, but a shop has more moving parts than a blog: a checkout, payment callbacks, transactional emails, and customer accounts that all remember the old address.

This guide walks through the whole path in a sensible order: what you need first, how to point the domain, how to update the WordPress and WooCommerce address, how to switch on HTTPS, how to protect business email, and how to test that the shop really works before you announce it. If you are working with a plain WordPress site instead, the sister guide on connecting a domain to WordPress covers the same foundation without the shop-specific steps.

What "connecting a domain" actually means

Three separate things have to line up, and most problems come from confusing them.

First, the domain is registered with a registrar. That is only a record of ownership. It does not hold any website. Second, DNS, the Domain Name System, is the directory that says which server answers for the name. If you want a refresher, the Cloudflare explainer on DNS is a good short read, and the original design is described in RFC 1034. Third, your hosting server must be configured to serve your store when a request arrives for that name. A request for shop.example may reach the right machine through DNS and still show a default page if the server does not know that the name belongs to your store.

So connecting a domain is really three jobs: point DNS at the server, make the server accept the name, and tell WordPress what its address is. The order matters less than finishing all three. When a shop shows a blank page, a redirect loop or the wrong site, one of the three is missing.

What to prepare before you start

Gather these items first so you are not hunting for logins halfway through:

  • Access to the place where the domain is managed (the registrar or a DNS provider), including two-factor login if you use it.
  • Access to your hosting control panel, so you can see the server's IP address, the nameservers it recommends, and where to add a domain or a certificate.
  • A WordPress administrator account on the store, plus a recent backup of the files and the database. Changing the site address can break links, so a backup is not optional for a live shop.
  • A list of what already depends on the domain: business email, payment gateway settings, shipping or marketplace integrations, analytics, and any advertising accounts that use your store URL.
  • A decision about the canonical form. Will customers see the bare name (example.com) or the www form (www.example.com)? Pick one now; the other will redirect to it.

If you do not yet own a name, you can look at the domain registration options to search and register one. If your shop will also send order confirmations from an address on your own domain, have a look at business email options at the same time, because mail records live in the same DNS zone you are about to edit.

Step 1: Point the domain at your hosting

There are two common ways to do it, and you should choose one deliberately.

Option A: change the nameservers

Your host gives you two or more nameserver names. You enter them at the registrar, and from then on the host's DNS panel controls every record for the domain. This is convenient because the host often creates the right records automatically, including the certificate validation. The risk is that every other record you had at the old DNS provider disappears from the answer unless you copy it across first. Email is the usual victim.

Option B: keep your DNS where it is and add records

You leave the nameservers alone and edit the zone. For a typical shop you add or change:

Record Host Value Purpose
A @ (the bare name) the IPv4 address of your hosting server Sends visitors of example.com to the shop
AAAA @ the IPv6 address, only if your host gives you one Same, for IPv6 visitors
CNAME www example.com Makes www follow the bare name
MX, TXT various keep exactly as they are Mail delivery and sender checks

Before you save, look for older A, AAAA or CNAME records on the same host name. Two competing answers produce random behaviour: some visitors reach the new shop, others reach the old one. Replace, do not add alongside.

Lower the TTL first

TTL (time to live) tells resolvers how long they may remember an answer. If the current records have a TTL of a day, some visitors will keep reaching the old address for a day after you change them. A few hours before the switch, lower the TTL to something short, such as five to fifteen minutes, then make the change, and raise it again once everything is stable. This one habit removes most of the "it works for me but not for my customer" complaints.

Tell the server about the name

Most hosting panels have an option to add a domain, an add-on domain or a site alias. If you skip it, requests may arrive at the right IP address and be answered by a default page. After adding the name, confirm that the document root points at the folder that holds your WordPress files.

Step 2: Update the WordPress and WooCommerce address

Once DNS leads to the server, WordPress still believes its address is the old one. Log in to the admin area (use the temporary address if the new name does not work yet), then open Settings, General. You will see two fields:

  • WordPress Address (URL): where the core files live.
  • Site Address (URL): the address visitors type.

On most stores both are the same. Enter the new name with the https prefix if the certificate is ready, or http for now if it is not, and save. WordPress will log you out because the cookie belongs to the old name; log in again on the new address.

Some sites lock these two values in the configuration file with the constants WP_HOME and WP_SITEURL. If the fields are greyed out, that is why; the values have to be edited in the file instead, using your host's file manager.

Product descriptions, page builders and widgets often store full addresses to images. If you only change the two settings above, those older links keep pointing at the temporary name. Use a reputable search-and-replace tool or a migration plugin that handles serialized data, and always run a dry run first. A plain text find-and-replace on the raw database can corrupt serialized values, which is why a tool that understands them matters.

Open Settings, Permalinks and press Save without changing anything. It refreshes the rewrite rules and fixes many 404 errors on product and category pages. Then open WooCommerce settings and check that the Cart, Checkout, My account and Terms pages are still assigned, and visit each one on the new name.

Step 3: Turn on HTTPS and fix mixed content

A shop without HTTPS is a poor idea even before the browser warns you, because customers type names, addresses and often payment details. HTTPS needs a certificate that matches the exact name. Certificates are issued after the issuer checks that you control the domain; the automated process most hosts use is described in How Let's Encrypt works. If you want a certificate with extra validation or a warranty-style product, see the SSL certificates page for the options and ask your host how to install it.

The usual order is:

  1. Install the certificate for the bare name and the www name, or request a single certificate that covers both.
  2. Set the WordPress Address and Site Address to https.
  3. Add a redirect from http to https, either in the hosting panel or through a well-tested plugin.
  4. Search the shop for mixed content: pages that load over https but still pull an image, script or font from an http address. Browsers may block those or show a warning.

Check in particular the checkout, because many payment gateways refuse to run on a page that is not fully secure. After the change, open the shop in a private window and click through a purchase up to the payment step. The address bar should show a closed padlock on every page without warnings.

Be careful with HSTS, a header that tells browsers to use https only. It is a good thing once everything is stable, but turn it on after you have tested, with a short duration at first, because it is hard to undo for visitors who have already seen it.

Step 4: Keep business email and payment callbacks working

Changing the address of a shop is the moment when email quietly breaks. Three situations are worth knowing.

You changed the nameservers. The new DNS zone must contain the MX records for your mailbox provider, the SPF record, and the DKIM and DMARC records if you use them. Copy them before the switch. Otherwise customers' replies to order emails bounce.

You only changed the A record. Mail is untouched, which is the safest case. Just make sure there is no mail record that points to the old server's name.

The shop sends its own emails. WooCommerce sends order confirmations through the web server by default, and these are often filtered as spam. A mailbox on your own domain, with proper sender records, makes them far more likely to arrive; see business email for how a domain mailbox fits in. Then set the From address in WooCommerce, Settings, Emails, to an address on your domain.

Payment and shipping integrations deserve a separate pass. Gateways commonly store a return URL, a webhook address, or an allowed domain. After you move the shop, update each of these in the provider's dashboard, then place a test order in the mode the gateway offers for testing. A forgotten webhook is a classic reason why orders stay "pending" after a successful payment.

A plain example

Imagine a small shop, Lanna Paper, that has been running on a temporary address from its host while the owner prepared products. The owner buys the name lannapaper.com and decides on the bare name as the canonical form.

On Monday evening the owner lowers the TTL of the existing records to five minutes and takes a backup. On Tuesday morning the owner adds the domain in the hosting panel, then at the registrar creates an A record for the bare name with the server's address and a CNAME for www that points to the bare name. After about twenty minutes the name answers.

Next, the owner logs in, changes both addresses to https://lannapaper.com once the certificate is installed, runs a search-and-replace dry run for the old temporary address, saves the permalinks, and checks the Cart and Checkout pages. The payment gateway's return URL is updated, and a test order is placed. The mailbox for the shop address already exists at the mail provider, so its MX records were kept untouched. Finally the owner raises the TTL back to a normal value. Nothing dramatic happened, because every change was small and tested.

Testing checklist before you announce the shop

Run through this list in a private window and on a phone using mobile data, so you are not looking at cached results:

  • The bare name and the www name both load, and one redirects to the other.
  • The http version redirects to https without a loop.
  • The padlock is closed on the home page, a product page, the cart and the checkout.
  • A product image and the logo load from the new name, not the old one.
  • A test order completes and the status moves past pending.
  • The order email arrives in a normal inbox, not only in spam, and replying to it works.
  • The old temporary address redirects to the new one, so previous links are not lost.

Limits and what to watch for

  • Propagation is not instant. Different networks learn about the change at different times. Do not make further edits in a panic; wait and check again.
  • Redirect loops. A common cause is a mismatch between the address settings and a redirect added elsewhere, or a proxy that talks to the server over http while the store expects https. Fix one layer at a time.
  • Search visibility. If the shop already has indexed pages on the old address, use permanent redirects from old to new and update the sitemap. Google's SEO starter guide explains why consistent addresses matter.
  • Caching layers. A caching plugin or a content delivery network may keep serving the old pages. Clear caches after each stage.
  • Legal and policy pages. Your shop name, domain and contact address appear in terms and privacy pages. Update them so they match.
  • Domain renewal. A shop that depends on one name stops working the day the name lapses. Turn on automatic renewal and keep the registrar contact email current.

If you are comparing platforms, remember that a hosted service handles part of this for you. The guide to connecting a domain to Shopify shows how the same idea looks when the platform owns the server. And if you are still planning what to sell and how to present it, the article on building an art supplies product catalogue website is a useful companion for structuring products before you bring customers to the domain.

Summary

Connecting your own domain to WooCommerce comes down to three aligned pieces: DNS that leads to your server, a server that accepts the name, and WordPress and WooCommerce settings that use the new address. Lower the TTL first, replace conflicting records, change the two WordPress address fields, add HTTPS and fix mixed content, then protect email and update payment callbacks before you test a real order. Check the whole flow from a clean browser, keep a backup, and change one thing at a time.

When you are ready to pick or manage the name itself, you can start from the domains page.

Frequently asked questions

Do I need to move my domain to my hosting company to use it with WooCommerce?

No. A domain can stay with its registrar. You only need to point its DNS records, either an A record or the nameservers, at the server where your WooCommerce store runs.

How long does it take before the domain shows my shop?

Often a few minutes to a few hours, but old DNS answers can be cached for up to the TTL of the previous record, so allow a day before you worry.

Why does my checkout show a security warning after I connect the domain?

Usually the certificate is missing, or the store still contains old http links to images and scripts. Install a certificate, set both WordPress addresses to https and replace old links.

Will connecting a domain change my business email?

Only if you change nameservers or delete MX records. Keep the MX, SPF and DKIM records when you edit DNS, or order emails and customer replies may stop arriving.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Start your website the right way

Register a domain, add SSL and set up business email from one place.

.com registration from $18.81 for the first year

Start with a domain

Keep reading

Website Guides

How to Connect Your Own Domain to WordPress

A practical walkthrough for connecting a domain you own to a WordPress site, whether it is hosted by WordPress.com or on your own hosting, including DNS, HTTPS and troubleshooting.

10 min read

Website Guides

How to Connect Your Own Domain to Shopify

A step-by-step guide to pointing a domain you bought elsewhere at your Shopify store, with the DNS records, primary domain choice and email checks explained.

10 min read

Website Guides

Building an Art Supplies Shop Website With a Product Catalogue: Where to Start

How an art supplies shop can build a product catalogue that artists can browse and filter: categories, variants, photos, safety notes, domain, SSL and business email.

10 min read