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 readUpdated Nov 27, 2026By XPASS Editorial Team

You have a WordPress site and a domain name you own, and you want visitors to type your own address instead of a long default one. The task sounds technical, but it comes down to two questions. First, where does the domain's DNS currently live, and how do I tell it where the website is? Second, does WordPress itself know the new address it should answer to?
This guide covers both parts. It starts with the idea behind the connection, then shows how to prepare, how to point the domain using records or nameservers, how to set the address inside WordPress, how to turn on HTTPS and tidy up www, and how to check and fix the usual errors. The steps are written for the two common cases: a site hosted on WordPress.com and a self-hosted WordPress installation on ordinary web hosting.
What "connecting a domain" actually means
A domain name is a label. When someone types it, their device asks the Domain Name System to translate it into the address of a server, as described in RFC 1034 and RFC 1035. The answer comes from the DNS zone of your domain, which sits at whichever provider runs your nameservers. Connecting a domain to WordPress means making three things agree.
- DNS points the domain to the server that holds your WordPress site.
- The server knows that requests for your domain belong to your WordPress site, which is often called adding the domain to the hosting account.
- WordPress is set to use the same address in its own settings, so links, images and logins use it.
If any one of the three disagrees, you may see an unrelated page, a certificate warning, a redirect loop or links that still show the old address. Keeping this model in mind helps when you troubleshoot.

Choose your case
The steps differ slightly depending on where the site lives.
| Situation | Where DNS is changed | Where the domain is added |
|---|---|---|
| WordPress.com site | At your domain provider, or by moving nameservers as instructed in the site's domain settings | In the site's domain settings on WordPress.com |
| Self-hosted WordPress on web hosting | At your domain provider, or at the host if you use its nameservers | In the hosting control panel, then in WordPress settings |
| WordPress on a server you manage yourself | In the DNS zone you use | In the web server configuration, then in WordPress settings |
The wording and menu names change over time at every provider, so treat the instructions inside your WordPress or hosting account as the final word for exact button names. The reasoning below stays the same.
Before you start: prepare and collect information
A few minutes of preparation prevents most problems.
- Confirm that you control the domain. Sign in to the account where you registered it. If you cannot find it, search the mailbox used at registration for the confirmation message. The domains page explains what to expect from a registrar account.
- Find out where DNS is managed. The domain's DNS zone is managed by whichever provider's nameservers are listed for it. This may be the registrar, the host or a separate DNS service. Changes only take effect where the live nameservers are.
- Collect the target information. For a self-hosted site, you need the server's IP address, which your hosting account shows. For WordPress.com, the domain settings show what to enter.
- Back up existing records. Copy or screenshot all current DNS records, especially MX records for email and TXT records for verification and email authentication.
- Back up the site. If you will change the site address inside WordPress, take a backup of files and database first.
- Pick the main address. Decide whether visitors should see the bare domain or the www version, and use that one consistently.
Step 1: Add the domain on the WordPress or hosting side
The server has to be ready to accept your domain before DNS starts sending visitors there.
On WordPress.com
Open the site's domain settings, choose the option to use a domain you already own, and enter the name. The service will show the method it supports for your domain, usually either pointing the nameservers to it or adding specific records. Follow what the screen shows.
On self-hosted hosting
Sign in to the hosting control panel and add the domain as the main domain of the account or as an additional domain. If the WordPress files sit in a particular folder, check that the domain's document root points to that folder. Many hosts install WordPress under a temporary address or a subfolder, so confirm where the files really are.
Step 2: Point the domain with DNS
You have two ways to send the domain to the site.
Option A: Edit records at your current DNS provider
This keeps DNS where it is and changes only what the website needs.
- Open the DNS zone for the domain.
- For the bare domain (also called the root or apex), create or edit an A record that points to the IPv4 address given by your host. If the host also gives an IPv6 address, add an AAAA record as well.
- For www, create or edit a CNAME record pointing to the bare domain or to the name the host gives you. Some providers instead ask for an A record for www as well. Use what your host instructs.
- Remove old A, AAAA or CNAME records for the same names that point somewhere else, because conflicting records cause unpredictable results.
- Leave MX and TXT records for email alone.
- Save, and note the TTL, which is the number of seconds that resolvers may cache the answer.
Option B: Change nameservers
Here you replace the domain's nameservers with those given by your host or by WordPress.com. The new provider then controls the whole DNS zone. Before you switch, make sure the new zone contains every record you need, especially MX records. If it does not, email can stop working as soon as the change spreads. Nameserver changes also take longer to be seen everywhere, because the registry keeps its own cached data.
Which option to choose
Choose Option A if the domain has working business email or other services, or if you want to keep DNS in one place. Choose Option B if your host asks for it, or if you prefer to manage the website and DNS together and have copied all existing records. If you are unsure, ask the provider what it supports, and avoid doing both at once.
Step 3: Tell WordPress its new address
In a self-hosted site, WordPress stores its address in two settings under Settings, General: the WordPress Address and the Site Address. For a normal installation they are the same, for example your full domain starting with https. When you move from a temporary address to your own domain, update both.
- Make sure the domain already opens your site over DNS before you change the settings, otherwise you may lock yourself out of the dashboard.
- Open Settings, General, and replace the old address in both fields with the new domain.
- Save. You will be signed out and sent to the new address, so sign in again.
- Check the front page, an inner page, an image and a login.
If you cannot sign in after a change, the address can also be set in the configuration file or directly in the database. Ask your host's support or a developer, and only after taking a backup.
Update links inside content
Posts, pages and widgets may still contain the old address inside links and image paths. A search-and-replace tool can update them, but run it on a backup first, because careless replacement can damage serialized data. Many sites also benefit from a plugin or host tool that handles this safely.
Step 4: Turn on HTTPS and choose www or non-www
Once the domain loads the site, add HTTPS. A certificate lets the browser verify the site's identity and encrypts traffic. Many hosts issue certificates automatically using the ACME protocol, which is the approach behind Let's Encrypt. You can also buy a certificate separately; the SSL page lists the options.
- Issue or install a certificate that covers both the bare domain and www.
- Redirect HTTP to HTTPS, either in the host's settings or in the WordPress configuration, but not in several places at once.
- Redirect the non-main version to the main one, so that only one form of the address answers directly.
- Reload pages and check for mixed content, meaning images or scripts still requested over plain HTTP.
Do not enable a forced HTTPS redirect before a valid certificate is in place, because visitors will see a warning and some browsers will block the page.

Step 5: Check that everything works
Test from a clean state, not just your usual browser.
- Open the site in a private window on your phone using mobile data, to avoid your own cached result.
- Check both the bare domain and www, with http and https.
- Look at the certificate details in the browser to confirm it matches your domain.
- Send a test email to and from your domain if you use business email.
- Use an online DNS lookup tool to see the records visible to the public.
If the old answer still appears, wait. Resolvers cache for the time set in the record, and your own device has a cache too.
A plain example
Suppose a small studio called Lantern Studio bought lanternstudio.example, and its WordPress site runs on shared hosting under a temporary address. Its steps look like this.
- The owner logs in to the registrar and copies the current DNS records, including MX records for the studio's email.
- In the hosting panel, the owner adds lanternstudio.example as the main domain, and the panel shows the server IP address.
- At the registrar's DNS page, the owner changes the A record for the bare domain to that IP address and sets the www CNAME to the bare domain. MX records stay as they are.
- After an hour the domain opens the site. The owner changes both addresses in Settings, General to the https version, signs in again and checks pages.
- The host issues a certificate for both names, the owner turns on the HTTP-to-HTTPS redirect and makes the bare domain the main address.
- A test email is sent to confirm that email still works.
The same approach applies to sites built with a product catalogue or a software company site, and if the site sells products through WooCommerce you can continue with the guide on connecting a domain to WooCommerce.
Limits and what to watch for
- Propagation is not instant. Changes show up at different times for different visitors. Avoid making further changes while you wait.
- Do not delete email records by accident. When moving nameservers or cleaning up records, keep MX and TXT records that belong to email.
- Redirect loops usually come from the same redirect being set in more than one place, or from a CDN or proxy mode that talks to the server over a different protocol than the visitor uses. Reduce the number of places that handle redirects.
- Mixed content appears when old links keep the HTTP address. Update them or use a tool that rewrites them.
- Domain locks and transfer rules. Connecting a domain does not require transferring it. Only transfer if you want to change the registrar, and note that registries enforce waiting periods in some situations.
- Subdirectory installs. If WordPress lives in a subfolder, the address settings and server rules need extra care.
- Expiry. The domain and the certificate both have renewal dates. Put them in a calendar.
- Keep the registrar contact details current, because the registrar uses them for verification and renewal reminders under the rules set by ICANN.
Summary
Connecting your own domain to WordPress means getting three parts to agree: DNS points to the right server, the server accepts the domain, and WordPress uses the same address. Prepare by backing up records and the site, add the domain on the WordPress or hosting side, choose between editing records and changing nameservers, update the WordPress Address and Site Address, then add HTTPS with a single main version of the address. Test from a clean browser, allow time for DNS caches to expire, and keep email records safe throughout.
If you do not have a domain for your site yet, you can look at the options on the domains page.
Frequently asked questions
Should I change nameservers or add an A record to connect my domain to WordPress?
Either can work. Changing nameservers hands all DNS management to the new provider, while adding or editing records keeps DNS where it is and only changes the entries for your website. If your domain also runs business email, the record method is usually safer because it leaves your email records untouched.
How long does it take for the domain to start showing my WordPress site?
Often a few minutes to a few hours, but it can take longer because DNS answers are cached for the time set in each record. Nameserver changes can take longer than record changes. Check again before you change anything else.
Why does my site show the wrong address or redirect in a loop after connecting the domain?
The most common causes are mismatched WordPress Address and Site Address settings, conflicting redirects set both in WordPress and at the host, and a security setting that forces HTTPS before a certificate is active. Fix the addresses first, then check redirects.
Do I need to do anything about www and the bare domain?
Yes. Choose one as the main address and redirect the other to it, so visitors and search engines see a single version of each page. Make sure both names have DNS records and are covered by the certificate.
Will connecting a domain break my email?
Not if you only change the records for the website. Email depends on MX and related TXT records. If you move nameservers, copy every existing record to the new provider first.
References
About the author

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 domainKeep reading

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

Website Guides
Building a Software Company Website to Explain Your SaaS: Where to Start
How a software company can build a website that explains its SaaS product clearly: positioning, key pages, domain, SSL, business email and the mistakes to avoid at launch.
10 min read

Website Guides
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 read