How do I make my domain open without www?
There are two ways to make the address without www (the root domain, such as mysite.com) open your site:
- Connect the root directly in Clickmax. This only works if your DNS provider accepts a CNAME record at the root, a feature each provider names differently: ALIAS, ANAME or CNAME flattening. Cloudflare accepts it.
- Connect
wwwand redirect the root to it at your provider. This works with any provider that offers redirects, and it is the way to go for providers that don't accept a CNAME at the root, such as IONOS.
If in doubt, use the second option: it doesn't depend on any special DNS feature.
Before you start
- Role: workspace Owner or Admin.
- Access to the panel of the provider where the domain is registered (or where its DNS is managed).
- The root domain can only be added to domains on the new version, the ones that show the Connect the domain in 3 steps card. If the option doesn't show up for you, use the second option.
Which option to use with your provider
Menu names change often; check in your provider's panel or with their support that the option still has the same name.
Other providers: look in the DNS editor for a record type called ALIAS or ANAME, or a mention of CNAME flattening. If it exists, option 1 works. If the panel rejects a CNAME named @, use option 2.
Option 1: connect the root directly
- Open Domains and click Add domain.
- Type the domain in the field on the right, for example
mysite.com. - Click Modify subdomain and delete
wwwfrom the subdomain field. A notice says you are connecting the root domain. - Check the Your site will open at line: it should show
https://mysite.com, withoutwww. - Pick the project and click Continue.
- In step 2 DNS, choose I will create the record myself and click See the records. Automatic setup can also be used, but it only completes with providers that accept a CNAME at the root.
- At your provider, create the record:
- If there is already an
AorAAAArecord at the root pointing to another server, delete it: otherwise visitors keep reaching the old server. - Go back to the domain screen and click Recheck. The 3 steps progress the same way as for a domain with
www, as explained in connect a domain.
On Cloudflare, set the record to DNS only (grey cloud) instead of Proxied.
With the root connected, www.mysite.com does not open on its own. If you want it to work too, create a redirect from www to the root at your provider, or add www as another domain in Clickmax.
Option 2: connect www and redirect the root
- Connect the domain with
www, for examplewww.mysite.com, with the CNAMEwwwpointing todomains.clickmax.space. Wait until the domain is Connected. - At your provider, create a redirect for the root only (
mysite.comor@) withhttps://www.mysite.comas the destination. - Choose the permanent HTTP redirect (301). Don't use the framed or masked type: it hides the real address and breaks pixels, checkout and the certificate.
- Never apply the redirect to
www. If the provider asks which names to apply it to, select only the root. Redirectingwwwremoves or overrides the CNAME and takes the site down. - Keep the CNAME
www→domains.clickmax.space. It is what keeps the site online. - Turn on the provider's security certificate (SSL) for the root, if it offers one. Without a certificate,
http://mysite.comredirects, buthttps://mysite.comshows a security error in the browser before redirecting.
IONOS
IONOS doesn't accept a CNAME at the root, so always use this option.
- In the IONOS panel, open Domains & SSL and click the domain.
- Look for the domain destination option (something like Adjust destination or Redirect) and choose the HTTP redirect, not the frame redirect.
- Use
https://www.mysite.comas the destination and apply it to the root domain only. Don't apply it towwwor other subdomains. - Check in the DNS record list that the CNAME
www→domains.clickmax.spaceis still there. - In the IONOS SSL certificates area, turn on a certificate for the root domain. Without it,
https://mysite.comshows a certificate error.
If the domain is blocked at IONOS, fix that first: see domain blocked at IONOS.
GoDaddy
- In the GoDaddy panel, open the domain and go to DNS.
- Look for the Forwarding tab or section and add forwarding for the domain, not for a subdomain.
- Use
https://www.mysite.comas the destination, type Permanent (301), and choose forwarding without masking. - Check that the CNAME
www→domains.clickmax.spaceis still in the record list.
Hostinger
- In hPanel, open Domains and look for the domain redirect option.
- Create the redirect from the root to
https://www.mysite.com, permanent type (301). - Check in the DNS Zone that the CNAME
www→domains.clickmax.spaceis still there.
If Hostinger's DNS zone offers the ALIAS record type for the root, option 1 also works.
Registro.br
Registro.br DNS doesn't accept a CNAME at the root and has no redirect feature. There are two ways out:
- Move the domain's DNS servers to a provider that accepts a CNAME at the root, such as Cloudflare, and follow option 1. The change is made at Registro.br, under DNS → change DNS servers, using the addresses the new provider gives you. Recreate all records you already use there (email, for example) before switching.
- Keep DNS at Registro.br, connect only
wwwand share the address withwww.
Cloudflare
Prefer option 1: Cloudflare accepts the CNAME @ and does the CNAME flattening on its own. If you still want to redirect the root to www, create a redirect rule (Rules → Redirect Rules) from the root to https://www.mysite.com, with code 301. The root needs a proxied record for the rule to work.
The domain home page must exist
Both options take visitors to the start of the site (https://www.mysite.com/ or https://mysite.com/). If no page is published at that address, the domain opens with no content. Publish a page with an empty URL: in the Page URL field, leave the part after the / empty, as the screen says (If you leave the part after the "/" empty, the domain root will be used.).
Related
- Connect a domain you already own
- Redirects and short links
- Supported domain providers
- My domain does not open
If it didn't work
- The provider rejects the CNAME named
@: it doesn't accept a CNAME at the root. Delete the root domain in Clickmax and follow option 2. - Clearing the subdomain is not accepted (Enter the subdomain. E.g. www shows up): the root domain can only be added on the new version. Add it with
wwwand follow option 2. https://mysite.comshows a certificate error whilehttp://works: the root SSL is not turned on at the provider (option 2, step 6).wwwstopped opening after the redirect: the redirect was applied towwwtoo. Restrict it to the root and recreate the CNAMEwww→domains.clickmax.space.- The address opens but shows no content: publish a page with an empty URL (see the domain home page).
- The root connected directly stays Connecting: check that no old
AorAAAArecord is left at the root and click Recheck.