Understanding Apex Domains (foodtruckgamers.com edition)

11/15/2025

TLDR: Apex domain = your domain without "www" (foodtruckgamers.com). Pick ONE version (apex OR www) as your "real" URL and redirect the other. This avoids duplicate content issues in Google. Cloudflare makes setup easy with CNAME flattening + page rules.

What is an apex domain?
Apex domain: foodtruckgamers.com
Subdomains: www.foodtruckgamers.com, blog.foodtruckgamers.com, api.foodtruckgamers.com

The apex = your domain without any prefix.

The three setups (and why you should pick one)
Same DNS for all three:

Note: Lovable gives you an IP address (A record), not a CNAME.
The apex (@) must be DNS only for Lovable to verify your domain.
Check your Lovable dashboard for the exact IP to use.

The difference is what happens after:
Setup 1: Both work (no redirect) ๐Ÿคจ

Setup 2: Force www (traditional) ๐Ÿ˜

Setup 3: Force apex (modern) ๐Ÿ˜

The key: Pick ONE version. That's your canonical URL (the "real" one Google indexes). Redirect the other.

Why duplicate URLs actually matter (it's worse than you think)
The SEO problem:

The geolocation disaster: If your site has location data (address, phone, hours), duplicate URLs can create:

Real-world example: You spend months getting 50 five-star reviews on your Google Business Profile linked to foodtruckgamers.com. Then Google creates a second listing for www.foodtruckgamers.com with 0 reviews. Now customers see the empty listing and think you're new/unreviewed.

The review investment problem:

Solution: Pick ONE canonical URL from the start.

Setting up foodtruckgamers.com on Lovable

  1. Add domain to Cloudflare โ†’ point nameservers
  2. Add DNS records (get IP from Lovable dashboard):
  3. Choose redirect strategy:
  4. Verify:

Pro tips

  1. SSL/HTTPS: Cloudflare handles automatically
  2. Email: Set up MX records separately if using hello@foodtruckgamers.com
  3. Subdomains: Use them for different purposes
  4. Lovable requires DNS only: Unlike some hosts, Lovable needs the apex domain set to "DNS only" (gray cloud) not "Proxied" (orange cloud) for domain verification to work. The www subdomain can be either.

Common mistakes

  1. Not picking a canonical version = Google indexes both = duplicate content = bad SEO
  2. Forgetting to set up both DNS records = one version breaks
  3. Forgetting to enable "Proxied" on both records = miss out on Cloudflare's SSL, CDN, and security benefits
  4. Not testing both URLs = broken redirects for users

Backlink bonus: Notice how this entire post links to foodtruckgamers.com multiple times? That's a backlink in action - another site (this blog) linking to your domain. Google sees these as "votes" for your site's credibility.

Back to Blog