How to redirect www to root domain?

I deployed a nextjs app, it has a root domain pointing to it, i added the record: "example.com ALIAS ...railway.url" To avoid adding multiple domains, i tried to redirect www to the root domain with "www CNAME example.com" The problem is that it seems it is not being redirected, i have an invalid ssl certificate error in the www domain, what record do i have to configure? I even checked the dns propagation of www and it is correct You can check this out with: - https://avanceautomotores.com.ar - https://www.avanceautomotores.com.ar Thanks in advance
5 Replies
Percy
Percy2y ago
Project ID: 6943e43d-2801-4347-99a0-6c11b72ff4e7
Brody
Brody2y ago
you will want to use cloudflare's nameservers so that you are able to set root level CNAMES, ALIASES won't work, then with cloudflare you also get a simple way to redirect www to non-www
bmariano
bmarianoOP2y ago
I have the domain in vercel, is it possible there? I mean, i'm using vercel's nameservers
Brody
Brody2y ago
vercel does not support root level CNAMES, so unfortunately no
bmariano
bmarianoOP2y ago
Thanks
Want results from more Discord servers?
Add your server