Domains

How to Connect Your Custom Domain to WordPress Step by Step

Connecting a custom domain to WordPress means updating your nameservers or DNS records so they point to the server where your WordPress site is installed.

Multi-colored cables intertwined against a dark background, showing technology connections.

To connect your domain to WordPress you need to update your domain's nameservers (or add specific DNS records) so they point to the server hosting your WordPress site. The exact process depends on whether you're using WordPress.com or self-hosted WordPress.org, but the core principles are the same.

This guide covers both scenarios with clear, step-by-step instructions.

WordPress.com vs WordPress.org: The Key Difference

Before diving in, it's important to know which platform your site is on — the connection process differs significantly:

Feature WordPress.com WordPress.org (self-hosted)
Where is it hosted? Automattic's servers Your own hosting provider
Paid plan required for custom domain? Yes (Personal plan or higher) No (you just need hosting + domain)
How is the domain connected? Through the WordPress.com dashboard By updating nameservers or DNS records

Option A: Connect a Domain to Self-Hosted WordPress.org

This is the most common setup. You have your own hosting account (cPanel, Plesk, etc.) with WordPress installed, and your domain is registered either with the same provider or a different one.

Step 1: Get Your Hosting Provider's Nameservers

Log in to your hosting control panel. Nameservers typically look like this:

ns1.yourprovider.com
ns2.yourprovider.com

Find them under "Account Information," "Server Details," or in the welcome email you received when you signed up.

Step 2: Update the Nameservers at Your Registrar

Log in to the control panel of the registrar where you bought your domain (GoDaddy, Namecheap, or wherever). Navigate to your domain's settings and find the Nameservers option. Replace the current ones with your hosting provider's nameservers.

Note: DNS propagation can take 1 to 48 hours. It's normal for the site not to appear immediately.

Step 3: Verify WordPress Recognizes Your Domain

Once propagation is complete, log in to your WordPress dashboard at yourdomain.com/wp-admin. Go to Settings → General and confirm that both the WordPress Address (URL) and Site Address (URL) fields match your domain exactly, including https:// if SSL is active.

Step 4: Activate SSL (HTTPS)

If your hosting includes Let's Encrypt (most providers do), activate the SSL certificate from cPanel or your hosting dashboard. Then install the Really Simple SSL plugin in WordPress to automatically redirect all HTTP traffic to HTTPS.

Option B: Connect a Domain to WordPress.com (Managed Platform)

If your site is on WordPress.com and you have a plan that supports custom domains (Personal, Premium, Business, or higher), the process looks like this.

Step 1: Add the Domain in WordPress.com

From the WordPress.com dashboard, go to Upgrades → Domains → Add a domain. Type your domain name and select "Use a domain I already have."

Step 2: Choose Your Connection Method

WordPress.com offers two options:

  • Change nameservers: Points your domain entirely to WordPress.com servers. Simpler, but you give up direct DNS control.
  • Map via DNS records: You keep your DNS at your registrar and only add the specific records WordPress.com provides (usually an A record and a CNAME). More flexible.

Step 3: Apply the Values at Your Registrar

WordPress.com will display the exact values to enter. Log in to your registrar's DNS panel and add or update the indicated records. Save the changes and wait for propagation (1–48 hours).

Step 4: Set It as Your Primary Domain

Once the domain is verified, go to Upgrades → Domains in WordPress.com, find your domain, and click "Set as primary domain" so your site loads from your custom URL.

Troubleshooting Common Problems

The Site Still Doesn't Load After 48 Hours

Use a DNS propagation checker to verify that the nameservers updated correctly. If they didn't change, repeat the process — some registrar panels require email confirmation before applying nameserver changes.

The Site Loads But Shows an SSL Error

Make sure the SSL certificate was issued for the correct domain. If you use Let's Encrypt in cPanel, delete the old certificate and regenerate it for the new domain.

WordPress Redirects to the Old or Staging Domain

This happens when the URL fields in Settings → General still show the temporary hosting domain (like account123.youhost.com). Update them manually or, if you can't access the dashboard, open wp-config.php and add these lines before /* That's all */:

define('WP_HOME', 'https://yourdomain.com');
define('WP_SITEURL', 'https://yourdomain.com');

Best Practices When Connecting Your Domain

  • Make the DNS change during low-traffic hours (overnight) to minimize impact on visitors.
  • Before changing nameservers, document all your current DNS records — especially MX records for email.
  • If you have email configured for the domain, re-add the MX records to the new DNS after switching nameservers to avoid mail interruptions.
  • Browse our domains category to go deeper on topics like DNS propagation and email record configuration.

If you want expert help setting up your domain with WordPress on professional hosting, the team at elenlace.com can walk you through every step so you don't have to figure it out alone.

Key Takeaways

  • Connecting a domain to WordPress means changing nameservers (complete handover) or adding specific DNS records (more flexible).
  • For self-hosted WordPress.org, get your hosting provider's nameservers and apply them at your registrar.
  • For WordPress.com, the process is managed inside their dashboard and requires a paid plan for custom domains.
  • DNS propagation takes 1–48 hours; it's normal for the site not to appear right away.
  • After connecting, verify the site URL under Settings → General and enable SSL.

With the steps in this guide, your domain should be live on WordPress within a few hours. If you'd rather hand off the technical configuration, reach out to elenlace.com and we'll handle it for you.

FAQ

How long before my site is visible with the new domain?

DNS propagation typically takes 1 to 48 hours, though it's often just a few hours. You can track progress using an online DNS propagation checker tool.

Do I need to delete the temporary subdomain my host gave me?

Not necessarily. The temporary staging URL (like account.youhost.com) can remain active internally. What matters is that WordPress has your custom domain configured as the primary URL under Settings → General.

Can I connect a .mx domain to WordPress?

Yes — the process is identical. A .mx domain connects to WordPress exactly the same way as .com or any other TLD. Just manage the nameservers through your accredited .mx registrar's control panel.

Will I lose my email if I change nameservers?

Potentially, yes — temporarily. When you switch nameservers, the new DNS won't have your MX records configured until you manually add them. Before making the switch, document your current MX records and re-enter them in the new DNS to avoid email downtime.

Further reading

Other providers and guides worth comparing:

← All