Connecting external domain to WordPress

Why do we do this? so we can host the blog at blog.siddjain.com instead of sidshome.wordpress.com

The setting to do this is in Upgrades -> Domains

Tip: do NOT use https://wordpress.com/domains/manage. You won’t be able to connect a domain on that page.

Click on advanced setup

Click on Start setup

Click on I found the domain’s settings page

There are 2 A records and 1 CNAME record WordPress will ask you to add to your DNS Settings. Do that.

Wait 5 minutes for the records to propagate then click on Verify

We are not done yet. If you leave things as-is at this point, then your blog will be mirrored on two URLs – yourname.wordpress.com and other.domain.com. You don’t want this as this is really bad for SEO. You want the domain you connected to become the primary and yourname.wordpress.com should redirect to that.

When you set a domain as “Primary,” WordPress automatically adds a rel="canonical" tag to your site’s code and performs a 301 redirect from the .wordpress.com address to your custom URL.

  1. In your WordPress.com dashboard, go to UpgradesDomains (or HostingDomains).
  2. You will see a list of all addresses associated with your site.
  3. Look for blog.siddjain.com.
  4. Click the three dots (⋯) next to it or click the domain name directly.
  5. Select Make Primary.

What Happens Next?

  • Automatic Redirects: If someone types siddjain.wordpress.com/my-post, they will be instantly redirected to blog.siddjain.com/my-post.
  • Search Engine Instruction: Google will see the 301 redirect and the canonical tag, signaling that blog.siddjain.com is the “official” version to index.
  • SSL Certificate: WordPress.com will automatically generate an SSL certificate for your subdomain (this can take a few minutes to an hour after setting it as primary).

One Quick Tip for Google Search Console

Even with the redirect in place, it is a “best practice” to go to your Google Search Console account and add blog.siddjain.com as a new property. This allows you to monitor exactly how Google is indexing the new URL.

Luckily WordPress did the above switch to primary for me without me having to do anything. The final setup is like this:

And here are curl requests showing what is happening behind the scenes and verifying the site is not duplicated across two URLs – Google does not like that:

$ curl -I sidshome.wordpress.com
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Fri, 20 Feb 2026 00:46:47 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
Location: https://sidshome.wordpress.com/
Alt-Svc: h3=":443"; ma=86400
Server-Timing: a8c-cdn, dc;desc=sea, cache;desc=BYPASS;dur=0.0
$ curl -I https://sidshome.wordpress.com
HTTP/2 301
server: nginx
date: Fri, 20 Feb 2026 00:46:55 GMT
content-type: text/html; charset=utf-8
location: https://blog.siddjain.com/
vary: Cookie
x-ac: 3.sea _bur MISS
alt-svc: h3=":443"; ma=86400
strict-transport-security: max-age=31536000
server-timing: a8c-cdn, dc;desc=sea, cache;desc=MISS;dur=35.0
$ curl -I http://blog.siddjain.com
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Fri, 20 Feb 2026 00:47:14 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
Location: https://blog.siddjain.com/
Alt-Svc: h3=":443"; ma=86400
Server-Timing: a8c-cdn, dc;desc=sea, cache;desc=BYPASS;dur=0.0

Bonus: You can change the favicon (known as Site Icon) in Settings -> General

Further Reading

This entry was posted in Software, Computers, programming and tagged . Bookmark the permalink.

Leave a comment