DNS & Edge Routing Architecture

Custom Domain & Cloudflare CNAME Bio Routing (2026): Apex Flattening & SSL Guide

custom domain link in bioCloudflare CNAME flattening bio linkforward root domain to wwwLinksInMyBio custom domain
Custom Domain & Cloudflare CNAME Bio Routing (2026): Apex Flattening & SSL Guide
Research Data & Conversion Architecture by Linkso.blog for LinksInMyBio.com & linkso.bio.

Skip $120–$348/yr Bio Subscriptions Forever

Claim your free page on LinksInMyBio.com with automatic linkso.bio/yourname short URLs and 1-tap promo cards.

Start Free at LinksInMyBio →

Overview

Quick Summary: Connecting a custom domain to your link-in-bio page requires resolving three technical constraints simultaneously: the RFC 1034 prohibition against CNAME records at a DNS zone apex, strict end-to-end TLS certificate validation under Cloudflare Full (Strict) SSL, and eliminating multi-hop HTTP redirect chains inside mobile in-app browsers. By pairing Cloudflare CNAME Flattening (or single-hop www Edge Redirect Rules) with LinksInMyBio.com, creators preserve root MX/TXT email records, prevent Error 526 certificate mismatches, and achieve sub-100 ms edge-resolved navigation. For creators who need instant zero-hop campaign attribution without configuring DNS zones, linkso.bio short links provide an out-of-the-box anycast routing alternative.

Most creator economy strategy guides treat the URL sitting in an Instagram, TikTok, or YouTube profile as a purely cosmetic branding decision. In reality, that single string triggers a chain of network protocols—authoritative DNS lookups, recursive resolver caching, TCP or QUIC connection establishment, TLS 1.3 handshake negotiation, SNI certificate selection, and HTTP redirect resolution—before a single pixel of your bio storefront ever paints inside a visitor's mobile webview.

According to Goldman Sachs Research, the global creator economy is projected to approach $480 billion by 2027, while Interactive Advertising Bureau (IAB) creator ad-spend benchmarks show brands increasingly tying payouts to measurable downstream conversions rather than raw impressions. Yet thousands of creators silently bleed 12% to 28% of their high-intent profile traffic every day because their custom domain relies on brittle registrar HTTP forwarding, misconfigured Cloudflare SSL modes, or unflattened apex records that stall on mobile carrier networks.

Whether you are launching your first hub via LinksInMyBio signup, migrating an established personal domain using the LinksInMyBio custom domain guide, or structuring clean www canonicalization with the root-to-www forwarding playbook, understanding the underlying DNS and TLS mechanics turns infrastructure from a fragile liability into a measurable conversion advantage.


Comparing bio routing architectures: Platform handle vs. linkso.bio vs. custom apex domain

Before touching a DNS zone file, creators and digital brands should evaluate the three primary routing topologies available in modern link-in-bio infrastructure. Each architecture carries distinct trade-offs across DNS lookup overhead, TLS certificate lifecycle management, email coexistence, brand trust, and operational complexity.

1. Standard Platform Handle (linksinmybio.com/@handle)

A standard platform handle sits directly on the provider's primary domain. Because the root domain is already cached in global recursive resolvers (Cloudflare 1.1.1.1, Google 8.8.8.8, and mobile ISP resolvers) and terminates TLS at an existing edge network, cold-start connection latency is minimal. Creators can claim a handle in under two minutes via LinksInMyBio.com with zero DNS administration. The trade-off is domain equity: external backlinks, social mentions, and browser bookmarks accrue authority to the platform domain rather than your own owned property.

2. Dedicated Zero-Hop Short URL (linkso.bio/slug)

Short-link architectures like linkso.bio exist specifically for high-velocity social distribution, QR code posters, podcast reads, and SMS drops where character length and cold-connection speed determine click-through survival. Unlike legacy URL shorteners that chain tracking redirects across multiple third-party hosts, a zero-hop edge router resolves the destination or serves the edge-cached bio response directly from the PoP closest to the user. It requires zero Cloudflare configuration while keeping bio URLs compact and resilient against mobile copy-paste truncation.

3. Custom Apex Flattened Domain (yourdomain.com or links.yourdomain.com)

A custom domain transfers full brand authority, SSL trust indicators, and first-party link ownership to your own registered domain. Visitors see yourdomain.com in the Instagram or TikTok in-app browser header, reinforcing brand legitimacy for high-ticket digital products, sponsorships, and local storefronts. However, hosting a third-party SaaS bio page on a root apex domain (yourdomain.com) introduces strict DNS specification constraints—specifically how CNAME flattening, MX mail routing, and Cloudflare for SaaS certificate validation interact at the edge.

Architectural DimensionPlatform Handle (linksinmybio.com/@handle)linkso.bio Short URL (linkso.bio/slug)Custom Apex Flattened Domain (yourdomain.com)
DNS Lookup Hops1 authoritative lookup (cached globally)1 authoritative lookup (edge-cached)1 flattened edge lookup (requires Cloudflare)
HTTP Redirect Hops0 hops (direct origin/edge serve)0 hops (edge KV resolution)0 hops if apex-first; 1 edge hop if root -> www
Typical Mobile TTFB~45–85 ms (warm edge PoP)~35–75 ms (lightweight edge worker)~55–110 ms (depends on edge cache & SSL mode)
Apex Email Safety (MX/TXT)Not applicable (platform-managed)Not applicable (platform-managed)High only with CNAME Flattening; breaks with naive CNAME
TLS Certificate ManagementFully automatic (platform wildcard/SAN)Fully automatic (edge-managed SAN)Cloudflare Universal SSL + SaaS Hostname DCV
Brand & SEO OwnershipShared platform domain authorityBranded short-domain signal100% owned domain authority & backlink equity
Setup ComplexityZero DNS required (~2 min setup)Zero DNS required (~1 min setup)Moderate (Cloudflare NS, DNS records, SSL mode)
Best Strategic Use CaseFast launch, testing offers, zero opsQR codes, Reels, podcasts, UTM campaignsEstablished creators, agencies, e-commerce brands

A mature creator stack frequently combines the second and third tiers: running the canonical bio storefront on a custom domain configured via the LinksInMyBio custom domain guide, while deploying linkso.bio short links for offline print assets, podcast vanity URLs, and granular campaign attribution.


The RFC CNAME limitation on apex domains (and why traditional DNS breaks)

To understand why connecting yourdomain.com (the zone apex or naked/root domain) fails on traditional domain registrars—and why Cloudflare CNAME Flattening is essential—you have to examine how the Domain Name System specification actually works.

Under IETF RFC 1034 (Section 3.6.2) and RFC 1912 (Section 2.4), a CNAME (Canonical Name) record carries a strict exclusivity rule: if a CNAME resource record is present at a DNS node, no other data (no other resource record type) is allowed at that exact node.

In plain terms, a CNAME record tells a recursive resolver: "Do not look for records under this name; this entire hostname is an alias for another hostname. Go ask for that target hostname instead."

Why subdomains allow CNAMEs, but the apex does not

When you create a subdomain such as www.yourdomain.com or links.yourdomain.com, that subdomain node typically has no independent zone management records attached to it. You can safely set:

links.yourdomain.com.   300   IN   CNAME   edge.linksinmybio.com.

Because links.yourdomain.com has no SOA, NS, or MX records of its own, there is no RFC conflict.

At the zone apex (yourdomain.com, represented as @ in zone files), however, DNS strictly requires two foundational records to exist so the domain can function on the public internet:

  1. SOA (Start of Authority): Defines the primary authoritative nameserver, serial number, refresh/retry timers, and negative caching TTL for the zone.
  2. NS (Name Server): Delegates the domain to its authoritative DNS providers (for example, ns1.cloudflare.com and ns2.cloudflare.com).

In addition to SOA and NS, almost every active creator or business domain also stores operational records at the apex:

  • MX (Mail Exchanger): Routes inbound email (hello@yourdomain.com) to Google Workspace, Microsoft 365, Zoho, or Mailcow.
  • TXT records: Publishes SPF (v=spf1 ...), DMARC policies (at _dmarc), and ownership verification tokens for Google Search Console, Apple, Meta, or Stripe.
  • CAA (Certification Authority Authorization): Restricts which Certificate Authorities may issue SSL certificates for the domain.

If a DNS provider allowed you to place a raw CNAME record at @, RFC-compliant recursive resolvers would treat the apex as an alias for LinksInMyBio's servers. When someone tried to email you@yourdomain.com, the mail transfer agent's DNS lookup for MX records at yourdomain.com would follow the CNAME to the bio platform's host—where your email server does not live—and bounced emails would start immediately. Even worse, DNSSEC cryptographic signatures (RRSIG) break when a CNAME collides with authoritative zone apex records.

Why legacy workarounds fail creators

Before edge DNS flattening became standard, registrars offered three brittle workarounds, each with severe production drawbacks:

  1. Hardcoding a static A record IP: Pointing @ to a single IPv4 address (203.0.113.10) avoids the CNAME conflict, but breaks the moment the SaaS provider rotates edge anycast IPs, shifts cloud regions, or mitigates a DDoS event. Your bio link goes offline with a TLS_UNRECOGNIZED_NAME or 502 error until you manually edit DNS.
  2. Registrar HTTP "Domain Forwarding": Cheap registrars offer a toggle to forward yourdomain.com to https://linksinmybio.com/@yourname. Behind the scenes, they point @ to a congested, single-region HTTP server running on port 80 with no valid HTTPS/SSL certificate for your domain. Anyone clicking https://yourdomain.com—which modern browsers and Instagram automatically enforce—hits a terrifying "Your connection is not private" security warning.
  3. Proprietary ALIAS / ANAME pseudo-records: Some DNS panels synthesize A records from a target hostname, but many implementations ignore EDNS Client Subnet (ECS) geo-steering or fail to cache/refresh rapidly during CDN failovers, routing European or Asian mobile visitors to distant North American origins.

How Cloudflare CNAME flattening solves root domain bio routing

Cloudflare resolves the RFC 1034 apex paradox cleanly without sacrificing anycast performance, DNSSEC integrity, or business email deliverability. Instead of serving a literal CNAME record to external resolvers when queried at the root apex, Cloudflare executes CNAME Flattening internally on its authoritative DNS edge.

Inside the Cloudflare flattening pipeline

When you configure a CNAME record at @ inside a Cloudflare DNS zone pointing to your LinksInMyBio edge target:

  1. Zone Storage: Inside your Cloudflare dashboard, you define a CNAME for @ (which displays a small badge indicating "CNAME flattening is applied at the apex"). You also keep your MX, TXT (SPF/ownership), and CAA records at @.
  2. Client Query: A visitor taps your bio link in TikTok. Their mobile carrier's recursive resolver queries Cloudflare's authoritative nameserver for the A (IPv4) or AAAA (IPv6) record of yourdomain.com.
  3. Internal Recursive Resolution: Cloudflare's authoritative engine detects the apex CNAME, resolves the target hostname chain internally across its global network, and obtains the optimal anycast IP addresses (or proxied Cloudflare edge IPs if the Orange Cloud is enabled).
  4. RFC-Compliant Response: Cloudflare strips the intermediate CNAME hop from the external DNS answer and returns pure A and AAAA records directly to the visitor's resolver.
  5. Email Isolation: When a mail server queries MX or TXT for yourdomain.com, Cloudflare does not flatten or redirect those record types—it answers directly with your Google Workspace or Mailcow MX and SPF TXT records.

This gives creators two simultaneous wins: zero DNS resolution penalty (the client receives final IP addresses in a single DNS round-trip rather than chasing multiple CNAME pointers) and 100% RFC compliance across email, DNSSEC, and mobile webviews.

The table below outlines a clean, production-hardened Cloudflare DNS zone configuration for a creator running their bio hub on yourdomain.com while keeping business email active and redirecting www.yourdomain.com cleanly (or vice versa, if using www as primary).

Record TypeHost / NameTarget / ContentProxy StatusTTLEngineering Purpose
CNAME@ (Apex)edge.linksinmybio.com (or assigned SaaS target)Proxied (Orange Cloud)AutoFlattens apex to edge IPs; routes bio traffic
CNAMEwwwyourdomain.comProxied (Orange Cloud)AutoResolves www through Cloudflare Edge for redirect/serve
TXT_cf-custom-hostnameuuid-token-from-dashboardDNS OnlyAutoDCV validation proving domain control for SaaS SSL
MX@aspmx.l.google.com (Priority 1)DNS Only (Grey Cloud)AutoPreserves inbound email; unaffected by CNAME flattening
TXT@v=spf1 include:_spf.google.com ~allDNS OnlyAutoAuthorizes outbound email senders; prevents spoofing
TXT_dmarcv=DMARC1; p=quarantine; rua=mailto:...DNS OnlyAutoEnforces email authentication policy
CAA@0 issue "letsencrypt.org" & 0 issue "pki.goog"DNS OnlyAutoAllows Cloudflare Edge & SaaS automated cert issuance

Critical Proxy Note: If your Cloudflare zone has Flatten all CNAMEs enabled under DNS -> Settings, be aware that some third-party SaaS verification scanners check for a raw CNAME string on subdomains like links.yourdomain.com or _acme-challenge. Keep the setting at its default "Flatten CNAME at apex" so subdomain CNAME records remain verifiable when set to DNS Only during onboarding, while @ remains cleanly flattened.

How Cloudflare for SaaS Custom Hostnames work under the hood

When a multi-tenant bio platform like LinksInMyBio.com connects your custom domain, it relies on edge custom-hostname routing (such as Cloudflare for SaaS). Understanding this handshake explains why certain DNS states temporarily stall:

  1. Hostname Registration: You enter yourdomain.com in your LinksInMyBio custom domain settings.
  2. Domain Control Validation (DCV): The edge generates a unique certificate validation challenge (either HTTP-01 served over port 80/443 once DNS points to the edge, or a TXT record like _cf-custom-hostname.yourdomain.com).
  3. Edge Certificate Issuance: Once validated, the edge issues a dedicated TLS 1.3 leaf certificate for yourdomain.com (via Let's Encrypt or Google Trust Services).
  4. SNI & Origin Routing: When a visitor connects, Cloudflare terminates TLS using that newly issued certificate and forwards the request to LinksInMyBio's fallback origin with the Host: yourdomain.com header intact, rendering your profile in milliseconds.

If you have restrictive CAA records on your root domain that only list an old hosting provider's CA (e.g., sectigo.com), edge certificate issuance will silently fail until you add letsencrypt.org and pki.goog (or remove restrictive CAA records).


Mastering Cloudflare SSL/TLS modes: Eliminating Error 525, Error 526, and redirect loops

Even when DNS records are textbook-perfect, the single largest source of broken custom bio domains is an incorrect SSL/TLS Encryption Mode inside Cloudflare. Cloudflare sits as a reverse proxy between the visitor and the origin platform, meaning there are two separate TLS connections on every request:

  1. Visitor <-> Cloudflare Edge (governed by Universal SSL / Edge Certificates).
  2. Cloudflare Edge <-> Origin Server (governed by the Cloudflare SSL/TLS Encryption Mode).
Cloudflare SSL ModeVisitor -> EdgeEdge -> OriginOrigin Cert Checked?What Happens with LinksInMyBio / Modern SaaS
Off (not encrypted)HTTP (Plaintext)HTTP (Plaintext)NoTriggers browser "Not Secure" warnings; blocked by HSTS & social IABs.
FlexibleHTTPSHTTP (Port 80)NoCauses infinite ERR_TOO_MANY_REDIRECTS loops. Origin forces HTTPS; edge keeps requesting HTTP.
FullHTTPSHTTPS (Port 443)No (Accepts invalid/self-signed)Works, but weakens origin transport security against MitM or misrouted origins.
Full (Strict)HTTPSHTTPS (Port 443)Yes (Must be valid CA or Origin CA)Production Standard. Verifies authentic origin TLS certificate; zero redirect loops.

When a user switches a domain to Cloudflare for the first time, Cloudflare's automatic recommender sometimes defaults to Flexible if it initially detects no active certificate during onboarding. Under Flexible mode, Cloudflare terminates HTTPS from the visitor's phone, then opens an unencrypted port 80 HTTP request to the destination server.

Modern platforms—including LinksInMyBio—enforce HTTPS at the origin/edge boundary. When the server receives an insecure HTTP request, it dutifully responds with an HTTP 301 Moved Permanently redirect to https://yourdomain.com/. Cloudflare passes that 301 back to the visitor's browser. The browser requests https://yourdomain.com/ again—and Cloudflare connects back to the origin on port 80 HTTP again. After 15 to 20 cycles in under a second, Chrome, Safari, and Instagram's WebView abort with ERR_TOO_MANY_REDIRECTS.

Fix: Immediately set SSL/TLS -> Overview -> Encryption mode to Full (Strict) for the zone (or configure a Configuration Rule specifically for the bio hostname if legacy subdomains on the same root require a different mode).

Diagnosing Error 526 (Invalid SSL Certificate)

Cloudflare Error 526 occurs exclusively under Full (Strict) mode when Cloudflare successfully connects to the origin over port 443, but rejects the SSL certificate presented by the origin server. Common causes during custom bio domain setup include:

  1. Orange Cloud enabled before SaaS DCV completes: If your domain already uses Cloudflare and you proxy (Orange Cloud) the record pointing to a SaaS target before the platform's Custom Hostname certificate finishes provisioning, Cloudflare's proxy may hit an intermediate endpoint presenting a mismatched hostname certificate—causing a 526 until DCV validation completes. Adding the _cf-custom-hostname TXT record or temporarily verifying in DNS Only mode allows immediate issuance.
  2. Stale Origin IP in an A record: If you mistakenly copied an IP address from a ping or nslookup into an A record instead of using a flattened CNAME, Cloudflare sends SNI for yourdomain.com to an IP whose certificate does not cover your domain—or hits a retired server IP.
  3. Orange-to-Orange (O2O) proxy mismatch on legacy configurations: When both your personal Cloudflare account and the SaaS provider use Cloudflare, routing requires an active Custom Hostname binding on the SaaS provider's Cloudflare for SaaS account. Until you register the domain inside your LinksInMyBio custom domain settings, the SaaS edge does not recognize your Host header as an authorized tenant and rejects the TLS handshake.
  4. Expired Cloudflare Origin CA certificate (if self-hosting a proxy): If you route through your own Nginx/Caddy/Traefik reverse proxy before forwarding, an expired Origin CA cert or missing intermediate chain immediately triggers 526 under Full (Strict).

Diagnosing Error 525 (SSL Handshake Failed)

Whereas 526 means "a certificate was presented, but failed validation," Error 525 means Cloudflare and the origin could not agree on a TLS handshake at all. Common culprits:

  • Port 443 is closed or firewalled on an intermediate server or misconfigured DNS target.
  • SNI (Server Name Indication) mismatch where the receiving server drops the TLS ClientHello because no virtual host matches yourdomain.com.
  • Unsupported cipher suites or TLS version mismatch (e.g., an outdated proxy forcing TLS 1.0 when Cloudflare requires TLS 1.2+).

Diagnosing Error 1016 (Origin DNS Error)

If you create a CNAME record pointing to an unresolvable or misspelled target hostname (for instance, a typo in the LinksInMyBio edge target or a deleted fallback hostname), Cloudflare returns Error 1016: Origin DNS error. Always double-check target spelling with dig CNAME yourdomain.com (or query the target directly with dig +short target.linksinmybio.com) before enabling the proxy.


Forwarding root domain to www vs. apex-first routing: Eliminating slow redirect chains

Once DNS flattening and Full (Strict) SSL are clear, creators face an important architectural fork:

  • Option A — Apex-First Routing: Your primary bio URL is https://yourdomain.com. Visitors who type www.yourdomain.com are redirected in a single edge hop to https://yourdomain.com.
  • Option B — www-Canonical Routing (Forward Root to www): Your primary bio URL is https://www.yourdomain.com, or you already run a full website/store at www.yourdomain.com and want yourdomain.com forwarded cleanly—or vice versa, routing yourdomain.com to www.yourdomain.com/links.

Both patterns are fully viable when engineered correctly at the Cloudflare Edge. For dedicated step-by-step instructions tailored to root-to-www setups, see the LinksInMyBio root-to-www forwarding guide. What destroys performance is not choosing www vs. apex—it is allowing multi-hop redirect chains to accumulate silently between them.

Anatomy of a conversion-killing 4-hop redirect chain

Consider what happens when a creator puts http://creatordomain.com (or creatordomain.com without https://) on a printed flyer, YouTube description, or older social bio, and pairs it with sloppy registrar forwarding plus a secondary bio redirect:

  1. Hop 1 (http://creatordomain.com -> https://creatordomain.com): Initial TCP + HTTP 301 HTTPS upgrade. On a 4G mobile connection with 75 ms RTT, TCP handshake + HTTP request/response consumes ~150–210 ms.
  2. Hop 2 (https://creatordomain.com -> https://www.creatordomain.com): Full TLS 1.3 handshake on the apex, followed by a 301 redirect to www. That costs another ~180–260 ms.
  3. Hop 3 (https://www.creatordomain.com -> https://www.creatordomain.com/ or /bio): Unnormalized trailing-slash or path-level redirect from a legacy Page Rule or CMS router (~120–180 ms).
  4. Hop 4 (https://www.creatordomain.com/bio -> https://linksinmybio.com/@creator): If the creator used an external redirect instead of native custom-domain host binding, the mobile browser now performs a brand-new DNS lookup, TCP handshake, and TLS handshake to linksinmybio.com (~220–350 ms).

Combined, 670 ms to over 1,000 ms evaporate before the browser even begins downloading HTML, fonts, or avatar WebP assets. In web.dev Core Web Vitals telemetry, multi-hop redirects directly inflate Time to First Byte (TTFB) and Largest Contentful Paint (LCP), while in-app social webviews show a blank white screen long enough for impatient scrollers to tap the back button.

Routing StrategyDNS LookupsTCP/TLS HandshakesHTTP Redirect HopsEst. Pre-HTML Delay (4G Mobile)Query String / UTM Preservation
4-Hop Registrar Forward + Redirect2–333–4670–1,050 msOften stripped on legacy forwards
Cloudflare Edge Root -> www Rule11 (HTTP/3 / TLS 1.3)1 (Edge 301, ~15 ms)95–155 ms100% preserved via dynamic expression
Apex Flattened Custom Domain (Direct)110 hops55–110 msNative full request preservation
linkso.bio Edge Short Link1 (warm cache)10 hops (edge serve)35–75 msNative campaign & tag tracking

How to configure zero-waste Root-to-www forwarding in Cloudflare (2026)

Cloudflare formally deprecated legacy Page Rules in favor of Redirect Rules (Single Redirects and Bulk Redirects). Redirect Rules execute directly at the Cloudflare Edge in under 15 ms, require no origin hit, and support expressive path and query-string preservation.

Step 1: Ensure the root @ DNS record exists and is Proxied (Orange Cloud)

This is the single most common reason root-to-www forwarding fails. Cloudflare Edge Rules only execute if traffic enters Cloudflare's proxy. If you delete the @ DNS record, or leave it set to DNS Only (Grey Cloud), Cloudflare never sees the HTTP request and cannot fire your Redirect Rule.

If your root domain is solely forwarding to www (which holds your CNAME to LinksInMyBio), create a placeholder proxied record on @:

  • Type: A (or AAAA)
  • Name: @
  • IPv4 Address: 192.0.2.1 (RFC 5737 documentation/discard IP; no traffic ever leaves Cloudflare because the Edge Redirect Rule intercepts 100% of requests)
  • Proxy status: Proxied (Orange Cloud)

(Alternatively, if you want both @ and www directly proxied to the bio origin without redirecting, use CNAME Flattening on @ and point www via CNAME—though SEO canonicalization prefers picking one canonical host and 301-redirecting the other.)

Step 2: Create a Single Redirect Rule in Cloudflare

Navigate to Rules -> Redirect Rules -> Create rule:

  • Rule name: Canonical Root to WWW (Preserve Path & UTM)
  • When incoming requests match: Custom filter expression
    • Field: Hostname | Operator: equals | Value: yourdomain.com
  • Then -> URL redirect:
    • Type: Dynamic
    • Expression: concat("https://www.yourdomain.com", http.request.uri.path)
    • Status code: 301
    • Preserve query string: Checked (Enabled)

By checking Preserve query string, campaign parameters such as ?utm_source=tiktok&utm_medium=bio&ref=launch survive the edge redirect untouched.

Step 3: Enable Edge HTTPS & HSTS to crush the HTTP upgrade hop

To prevent visitors who type yourdomain.com from wasting a round-trip on plaintext port 80:

  1. Under SSL/TLS -> Edge Certificates, enable Always Use HTTPS.
  2. Enable Automatic HTTPS Rewrites.
  3. Enable HTTP Strict Transport Security (HSTS) once your SSL is verified working (max-age=31536000 / 12 months, Include subdomains enabled if all subdomains support HTTPS, and No-Sniff header enabled). With HSTS active, repeat visitors' browsers automatically rewrite http:// to https:// locally in memory before sending a single packet over the network.

Step-by-step Cloudflare setup playbook for LinksInMyBio custom domains and linkso.bio

Below is the complete, production-tested deployment sequence for connecting a custom domain to LinksInMyBio.com without downtime, email disruption, or Error 526 loops.

Phase 1: Provision your LinksInMyBio profile and choose your routing model

  1. Create and publish your profile page at https://linksinmybio.com/signup/. Verify that your bio blocks, referral promo cards, and social metadata render cleanly on your native handle first so you have a known-good baseline.
  2. Decide whether your primary public URL will be:
    • Apex Custom Domain (https://yourdomain.com) — ideal for clean visual recall on Instagram/TikTok bios and podcasts.
    • Subdomain or www Canonical (https://links.yourdomain.com or https://www.yourdomain.com) — ideal if your root apex already hosts an established Shopify store, WordPress blog, or corporate web app.
    • Hybrid with linkso.bio — pair your custom domain with campaign-specific linkso.bio short links for offline QR codes, YouTube video descriptions, and influencer tracking where you want zero-configuration edge speed.

Phase 2: Onboard the domain into Cloudflare safely

  1. Add your domain inside your Cloudflare dashboard (Free tier includes CNAME Flattening, Universal SSL, HTTP/3, Brotli, and 10 Single Redirect Rules).
  2. Audit imported DNS records carefully. Cloudflare's scanner often misses less-common TXT verification keys or secondary MX records. Export your old registrar's BIND zone file (or screenshot all records) and cross-check every MX, TXT (SPF/DKIM/DMARC), and SRV record before switching nameservers.
  3. Check DNSSEC before changing nameservers. If DNSSEC was enabled at your old registrar (GoDaddy, Namecheap, Porkbun), disable DNSSEC at the registrar first and wait for the DS record TTL to expire before changing nameservers to Cloudflare. Migrating nameservers while an old DS record remains active at the TLD registry causes immediate SERVFAIL resolution outages worldwide. Once Cloudflare nameservers are active, re-enable DNSSEC inside Cloudflare and copy the new DS record back to your registrar.

Phase 3: Configure DNS records and SaaS verification

  1. Follow the exact target values provided in your dashboard and the LinksInMyBio custom domain guide.
  2. For an apex-first bio domain, delete any stale @ A or AAAA records from old hosting (parking pages, Wix, Squarespace, cPanel) and create the single @ CNAME pointing to the LinksInMyBio edge target. Cloudflare automatically flattens it at the apex.
  3. For a subdomain (links.yourdomain.com) or www-canonical setup, create the CNAME on links or www pointing to the LinksInMyBio edge target, and follow the forward root domain to www Edge Redirect Rule pattern if redirecting @ -> www.
  4. Add any required DCV TXT record (such as _cf-custom-hostname) and verify that your CAA records—if present—do not block letsencrypt.org or pki.goog.
  5. Wait for the LinksInMyBio custom domain panel to report SSL Active / Verified before announcing the URL publicly.

Phase 4: Harden Cloudflare Edge performance and security settings

Once TLS is active, optimize Cloudflare's transport layer for mobile social webviews:

  • SSL/TLS -> Overview: Set strictly to Full (Strict).
  • SSL/TLS -> Edge Certificates -> Minimum TLS Version: Set to TLS 1.2 (allows TLS 1.2 and TLS 1.3).
  • SSL/TLS -> Edge Certificates -> TLS 1.3: Enabled (cuts handshake latency from 2-RTT to 1-RTT on mobile networks).
  • Speed -> Optimization -> Protocol Optimization: Enable HTTP/2 and HTTP/3 (with QUIC). HTTP/3 dramatically improves reliability when a mobile user switches from home Wi-Fi to 5G cellular mid-tap.
  • Network -> 0-RTT Connection Resumption: Enable for fast repeat bio visits (safe for GET bio page loads).
  • Speed -> Optimization -> Content Optimization: Enable Brotli compression; leave legacy Auto Minify disabled if deprecated or unnecessary, as modern SSG/Vite bundles are already minified and Brotli-compressed.

Phase 5: Command-line verification before updating social bios

Never rely solely on a cached desktop browser tab to assume your domain works globally. Run three quick terminal checks to verify DNS, TLS, and HTTP redirect hops objectively:

# 1. Confirm apex flattening returns clean A/AAAA records (not a broken CNAME at root)
dig +short A yourdomain.com @1.1.1.1
dig +short MX yourdomain.com @1.1.1.1

# 2. Verify zero redirect loops and count exact HTTP hops (should be 200 OK or a single 301 -> 200)
curl -ILs -o /dev/null -w "Final URL: %{url_effective}\nRedirects: %{num_redirects}\nHTTP Code: %{http_code}\nTTFB: %{time_starttransfer}s\n" https://yourdomain.com

# 3. Inspect the exact SAN SSL certificate served at the edge
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates

If num_redirects is 0 (for apex-first) or 1 (when testing http:// -> https:// or root -> www), http_code is 200, MX still returns your mail server, and subject matches CN = yourdomain.com, your edge routing is production-ready.


Troubleshooting production DNS & TLS errors

Use the diagnostic matrix below whenever a custom domain stalls during rollout or breaks after a registrar change.

Error / SymptomPrimary Root CauseDiagnostic CheckVerified Resolution
ERR_TOO_MANY_REDIRECTSCloudflare SSL mode is set to Flexible while origin enforces HTTPScurl -I https://yourdomain.com shows repeated 301 to the same HTTPS URLSwitch Cloudflare SSL/TLS Overview to Full (Strict)
Error 526 (Invalid SSL Certificate)Edge connected over HTTPS, but origin/SaaS cert for your hostname isn't issued or stale A IP is usedCheck SaaS dashboard SSL status & dig CAA yourdomain.comReplace static A IP with flattened CNAME; complete DCV TXT; allow letsencrypt.org/pki.goog in CAA
Error 525 (SSL Handshake Failed)Origin port 443 closed, SNI mismatch, or intermediate proxy rejects TLS 1.2/1.3openssl s_client -connect ... fails handshakeVerify target CNAME hostname matches LinksInMyBio edge endpoint; remove broken intermediate proxy
Error 1016 (Origin DNS Error)Proxied CNAME points to a nonexistent, misspelled, or unresolvable targetdig +short target-hostname returns empty (NXDOMAIN)Correct the CNAME target hostname in Cloudflare DNS
Root -> www rule never firesMissing @ DNS record or @ record is set to DNS Only (Grey Cloud)dig +short A yourdomain.com shows registrar IP instead of Cloudflare IPAdd proxied (Orange Cloud) A 192.0.2.1 or flattened CNAME at @
Business emails suddenly bounceRegistrar attempted pseudo-CNAME overriding MX, or MX deleted during migrationdig +short MX yourdomain.com returns empty or points to web hostMigrate DNS to Cloudflare (which isolates MX from apex CNAME flattening) and restore MX records
Global SERVFAIL after transferOld registrar DS (DNSSEC) record mismatched new Cloudflare DNS keysdig +dnssec yourdomain.com returns SERVFAILDisable DNSSEC at old registrar or update DS record with Cloudflare's values

Ready to Test the Creator Studio Yourself?

Zero credit card required. Export QR posters, set WCAG contrast, and publish in 60 seconds.

Open Free Creator Studio →

Frequently asked questions

Cloudflare CNAME flattening is an authoritative DNS feature that lets you point a root domain (yourdomain.com) to an external hostname—such as a LinksInMyBio edge endpoint—without violating IETF RFC 1034 DNS rules. Standard DNS forbids placing a CNAME at the zone apex because the root already holds required SOA, NS, and MX records. Cloudflare solves this by storing the CNAME internally, resolving the target IP addresses at its authoritative edge whenever a visitor queries A or AAAA, and returning pure IP records externally. This preserves your email, supports dynamic cloud failover, and eliminates extra DNS lookup hops.

2. Will connecting my root domain to LinksInMyBio break my existing business email (Google Workspace or Microsoft 365)?

No—provided you manage DNS through a provider that supports proper apex flattening (like Cloudflare) and keep your existing MX, TXT (SPF and DKIM), and _dmarc records intact during migration. Because Cloudflare only flattens A and AAAA queries when resolving the apex CNAME, mail servers querying MX or TXT records at yourdomain.com still receive your exact Google Workspace, Microsoft 365, Zoho, or Mailcow records without interference. Just ensure that any mail-related subdomains (such as mail.yourdomain.com, smtp.yourdomain.com, or autodiscover) remain set to DNS Only (Grey Cloud) so Cloudflare never proxies non-HTTP SMTP or IMAP traffic.

3. Why am I seeing Cloudflare Error 526 (Invalid SSL Certificate) after pointing my CNAME to a bio platform?

Error 526 occurs when Cloudflare's encryption mode is set to Full (Strict), and the destination server presents a TLS certificate that is missing, expired, or does not include your custom domain in its Subject Alternative Name (SAN) list. During initial custom-domain setup, this typically happens for three reasons: the platform's Domain Control Validation (DCV) TXT record hasn't propagated yet, restrictive CAA records on your domain are blocking automated Let's Encrypt or Google Trust Services issuance, or your DNS record uses a hardcoded A IP address instead of the official CNAME target. Fixing the CNAME, verifying CAA, and waiting 5–15 minutes for DCV issuance resolves 526 cleanly.

If your domain exists solely for your creator hub and has no existing corporate website at the apex, apex-first routing (https://yourdomain.com) is usually optimal because it is shorter to type, cleaner on podcast reads and business cards, and serves in zero HTTP redirect hops via Cloudflare CNAME flattening. Conversely, you should forward root to www (or use a dedicated subdomain like links.yourdomain.com) if you already run an external website or e-commerce store on the root, or if your enterprise DNS policy requires strict CNAME separation without apex flattening. In either case, keep only one canonical URL and 301-redirect the variant at the Cloudflare Edge.

5. Why do Cloudflare Page Rules or Redirect Rules fail to trigger when forwarding root to www?

Cloudflare Redirect Rules and legacy Page Rules only execute on HTTP or HTTPS requests that physically pass through Cloudflare's reverse-proxy network. If you create a Redirect Rule for yourdomain.com/* -> https://www.yourdomain.com/, it will never fire unless traffic for yourdomain.com actually routes to Cloudflare edge servers first. Creators frequently delete the @ DNS record altogether—resulting in an immediate NXDOMAIN lookup error—or leave @ pointing to an old registrar IP with the Grey Cloud (DNS Only) enabled. To make root-to-www edge forwarding work reliably, create an A record on @ pointing to 192.0.2.1 (or AAAA 100::) and toggle the proxy status to Proxied (Orange Cloud).

6. How does Cloudflare Flexible SSL cause infinite redirect loops (ERR_TOO_MANY_REDIRECTS)?

Under Flexible SSL, Cloudflare accepts an encrypted HTTPS connection from the visitor's browser, decrypts it at the edge, and then communicates with the backend platform over unencrypted HTTP port 80. Because modern bio platforms like LinksInMyBio enforce HTTPS everywhere, the server rejects the insecure port 80 request with a 301 redirect to https://yourdomain.com/. Cloudflare forwards that 301 back to the browser, the browser immediately retries https://yourdomain.com/, and Cloudflare hits port 80 again—trapping the visitor in an endless loop until the browser aborts with ERR_TOO_MANY_REDIRECTS. Switching Cloudflare to Full (Strict) forces edge-to-origin traffic onto HTTPS port 443 and eliminates the loop immediately.

Custom domains excel as your permanent "home base" in social profile headers where brand recognition matters most. However, linkso.bio short links serve a distinct tactical role: they are ultra-compact, require zero DNS propagation or SSL maintenance, and operate as zero-hop edge links optimized for physical QR posters, live stream overlays, SMS broadcasts, and verbal podcast CTAs. Many high-volume creators run their primary storefront on a custom domain connected via LinksInMyBio's custom domain guide, while spinning up individual linkso.bio slugs to track conversion lift across specific Reels, newsletters, and print flyers without cluttering their main domain path structure.

8. Can CAA DNS records or DNSSEC settings block my custom bio domain's SSL certificate issuance?

Yes, both can silently stall custom domain onboarding. If your domain includes a CAA (Certification Authority Authorization) record left over from a previous host—for example, 0 issue "sectigo.com"—Certificate Authorities like Let's Encrypt and Google Trust Services are legally prohibited by CA/Browser Forum rules from issuing an edge certificate for your bio domain, leaving you stuck in a pending SSL state or triggering Error 526. You must add 0 issue "letsencrypt.org" and 0 issue "pki.goog" (or delete restrictive CAA records). Similarly, migrating nameservers to Cloudflare without first disabling an active DS DNSSEC key at your old registrar causes recursive resolvers worldwide to reject your entire domain with SERVFAIL before TLS even begins.


Sources and further reading

  • IETF RFC 1034 & RFC 1912: Domain Names — Concepts and Facilities (Section 3.6.2 CNAME Exclusivity) and Common DNS Operational and Configuration Errors — foundational specification governing apex CNAME restrictions.
  • IETF RFC 8659: DNS Certification Authority Authorization (CAA) Resource Record — governs automated edge TLS certificate issuance permissions.
  • W3C Navigation Timing Level 2: PerformanceNavigationTiming & Redirect Timing Specifications — standards for measuring redirect overhead, DNS lookup latency, and TLS negotiation timing.
  • web.dev (Google Chrome Developers): Optimize Time to First Byte (TTFB) and Avoid Multiple Page Redirects — Core Web Vitals engineering guidance on eliminating redirect chains on mobile networks.
  • Cloudflare Developer Documentation: CNAME Flattening, Encryption Modes (Full Strict vs. Flexible), Troubleshooting Error 526 & 525, Single Redirect Rules, and Cloudflare for SaaS Custom Hostnames.
  • Goldman Sachs Research & IAB: The Creator Economy: Creators Are Taking Over Media and IAB Creator Economy Ad Spend & Attribution Benchmarks — macro data on creator commerce and conversion sensitivity.
  • LinksInMyBio Engineering Lab & Guides:

Claim Your Handle on LinksInMyBio.com Before It's Taken

Includes linksinmybio.com/yourname AND linkso.bio/yourname free forever.

Claim Your Free Handle Now →
$0 Bio Page + linkso.bioClaim Free →