R
Railway16mo ago
bmariano

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
Percy16mo ago
Project ID: 6943e43d-2801-4347-99a0-6c11b72ff4e7
Brody
Brody16mo 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
bmariano16mo ago
I have the domain in vercel, is it possible there? I mean, i'm using vercel's nameservers
Brody
Brody16mo ago
vercel does not support root level CNAMES, so unfortunately no
bmariano
bmariano16mo ago
Thanks
Want results from more Discord servers?
Add your server