Google Sites domain not working without www: the fix
Google Sites opens at www but not at the bare domain? Why it happens and how to forward the root domain to www at Squarespace, GoDaddy, Namecheap or Cloudflare.
The Liite team8 min de lectura
Short answer
Google Sites can only be mapped to a subdomain such as www, so the bare domain needs its own redirect to www. Set that up at your DNS provider or registrar (a forwarding rule, or a proxied placeholder record plus a redirect rule on Cloudflare), not inside Google Sites. Keep the www CNAME to ghs.googlehosted.com untouched while you do it.
Your site loads at www.yourdomain.com, but typing yourdomain.com gives an error, a parked page or nothing. That is what people search as "google sites domain not working without www".
Why it happens
By default, Google Sites must be mapped to a subdomain and can't be mapped to a naked domain. Google's own help for the custom-domain flow also says your URL must include a subdomain, like "www".
When you connect a domain, you add a CNAME for www that points to Google. Nothing is ever added for the root (@), so the root still points wherever your registrar left it: a parked page, a default "website builder" placeholder, or nowhere. Squarespace says the same in its own steps: the CNAME record only connects the www version of your domain.
The usual causes, most common first:
- No forwarding rule exists for the root domain.
- A forwarding rule exists but was saved in a way that broke the
wwwrecord. People on GoDaddy report that setting up a forward can overwrite thewwwCNAME and leave the domain parked. - The forward only handles
http://, sohttps://yourdomain.comstill fails. - On Cloudflare, the root has no proxied record, so the redirect rule never fires.
- The domain has HTTP Strict Transport Security (HSTS) enabled. For Google Workspace, Google notes that if you can't access any of your sites with a naked domain address, your domain might be set up with HTTP Strict Transport Security.
Some Squarespace users on community threads said support told them the problem was with engineers. We can't confirm whether that was ever fixed. Squarespace now publishes a forwarding-rule method (below), so use that first.
Step-by-step fixes
Step 0: Confirm www works first
- In Google Sites, open your site and go to Settings > Custom domains.
- Check that the domain shows under connected domains.
- At your DNS provider, check that
wwwis a CNAME toghs.googlehosted.com. Google's Workspace help gives that target for custom URLs: ensure your domain's DNS is configured so the custom URL points to ghs.googlehosted.com. - Google says changes may take up to 48 hours to show on the internet, so don't judge the result in the first few minutes.
If you use Google Workspace, Google has its own page, Set up the naked domain address for your site. It requires the site to already be hosted at www, and the redirect is set up in the Admin console under Domains > Manage domains.
Squarespace Domains
Squarespace documents this exact case in Connect your Squarespace domain to a Google Sites website. The steps:
- Open your domains dashboard and click the domain.
- Click Website.
- Under Domain Forwarding Rules, click Add rule.
- In the Subdomain field, enter
@. - In the website URL field, enter
www.yourdomain.com. - Under Advanced settings, choose Permanent Redirect (301) (or 302 while testing).
- Keep SSL On under Forwarding over SSL.
- Choose Maintain paths if you want deep links to carry over, then click Save.
Some older community posts suggest an A record on @ instead. We couldn't verify that against current docs, so use the forwarding rule.
GoDaddy
We couldn't pull GoDaddy's current help page, so look for Forwarding in the domain's settings. Forward @ (the bare domain) to https://www.yourdomain.com as a permanent forward. Then reopen the DNS records and confirm the www CNAME is still there. If it vanished, re-add it with the target Google showed you. If the domain stays parked, contact GoDaddy support (see below).
Namecheap
Namecheap's Google Sites article lists a URL Redirect record with host @, pointing to your www address, set to Unmasked. It notes that an HTTPS redirect is only possible when the destination has an SSL certificate on Google's end. Add it under Advanced DNS, in Host records.
Cloudflare
Cloudflare only applies redirect rules to traffic it proxies. Its docs describe the root-to-subdomain pattern like this:
- Keep the
wwwrecord as a CNAME toghs.googlehosted.com, set to DNS only (grey cloud). This is the community-recommended setting for the Google Sites record. We didn't find Google or Cloudflare documentation that states it. - Add a proxied A record for the root: name
@, IPv4192.0.2.1, Proxied (orange cloud). Cloudflare's docs say this record can point to any IP address since all traffic will be redirected prior to reaching the address. - Go to Rules > Overview, then Create rule > Redirect Rule.
- Match requests where the hostname equals
yourdomain.com. - Set the target to a dynamic expression such as
concat("https://www.yourdomain.com", http.request.uri.path), with status 301. - Click Deploy.
Cloudflare's Manage subdomains page shows this exact pattern. It also has a ready-made wildcard version, with the target https://www.example.com/${1}, which keeps the path.
Only HTTPS is matched by some templates
Cloudflare's root-to-www example covers HTTPS requests only and leaves plain http:// requests unchanged. If visitors type http://yourdomain.com, use the hostname-based expression in step 4 instead.
Which fix fits which provider
| Where your DNS lives | Fix | Watch out for |
|---|---|---|
| Squarespace Domains | Forwarding rule @ → www, SSL On | Pick 301 or 302 |
| GoDaddy | Forward @ → https://www… | www CNAME can disappear |
| Namecheap | URL Redirect @, Unmasked | HTTPS needs a certificate on Google's side |
| Cloudflare | Proxied @ A record plus redirect rule | www must stay DNS only |
| Google Workspace | Admin console redirect | Needs HSTS off |
Check that it worked
- Open
yourdomain.comin a private window, over bothhttp://andhttps://. - Run it through our redirect checker to see each hop. It should end on
wwwwith a 301 or 302. - If it stops at a parked page, the forward isn't active. If it stops at a certificate warning, the HTTPS side of the forward is the problem.
What won't help
- Adding a CNAME on
@. Most DNS panels refuse it, and the root usually carries mail records that would conflict. - Re-entering the domain in Google Sites repeatedly. The gap is at the root, not in the Sites mapping.
- Pointing the root at a random IP from a forum post. Use your registrar's forwarding or Cloudflare's rule instead. Third-party redirect helpers exist, but you hand them your root domain.
- Forwarding in a registrar "website builder" panel while your DNS records point somewhere else. The two must agree.
Checklist before you try again
wwwCNAME points toghs.googlehosted.comand is still present after saving the forward.- One forwarding rule or redirect rule exists for
@, not several. - The forward goes to
https://www.yourdomain.com. - SSL or HTTPS forwarding is on.
- On Cloudflare, the root record is proxied and
wwwis DNS only. - You have waited long enough for DNS and certificates to settle.
If nothing works
Contact your registrar or DNS provider first, since the root record is theirs. For www itself failing, use Google Sites help. Include the exact domain, what yourdomain.com shows, the record list from your DNS panel, and the time of your last change.
Hello, my Google Site works at https://www.yourdomain.com but not at https://yourdomain.com.
The www CNAME points to ghs.googlehosted.com. I added a forwarding rule for @ to
https://www.yourdomain.com on [date/time], but the bare domain still shows [error / parked page].
Please check that the forward is active, that it covers HTTPS, and that it did not
overwrite the www record. Screenshots of my DNS records are attached.Common questions
Why does www work but the bare domain doesn't?
They are two separate DNS names. You created a record for www when you connected the site, but nothing was created for the root.
Can I make the bare domain the main address instead?
Google's community guide only describes redirecting the naked domain to your custom URL. We found no documented way to serve the Google Site directly on the root, so treat www as the real address.
Should I use a 301 or a 302 redirect?
A 301 is permanent and is the normal choice once everything works. Squarespace offers both, so use 302 while testing if you like.
Do I need Google Workspace for this?
No. Workspace has its own admin-console redirect, but personal-account users do the redirect at the registrar or DNS provider, as above.
If you'd rather skip the redirect step
On Liite, a custom domain (Pro and up, one per site) can be entered as the bare domain or the www version, and the other redirects to it. You add the DNS records the dashboard shows (an A record for the apex, or a CNAME for a subdomain) and the status turns Active, with HTTPS set up automatically. See custom domains. Liite builds pages or serves uploaded HTML, ZIP and PDF files, so this suits a site you can rebuild or upload, not a Google Site as it stands.