5 months ago
Hi,
I added a custom domain yesterday,
added the CNAME, an pointed to the what I got from railway.
However when I try to go to the domain, it shows the Railway 404 Error.
I'm with Bluehost.
Any advice?
Pinned Solution
5 months ago
Are you pointing example.com or www.example.com?
You can’t use a CNAME on the root domain. Add the CNAME for www.example.com first, then redirect example.com to www.example.com in Bluehost.
4 Replies
5 months ago
Are you pointing example.com or www.example.com?
You can’t use a CNAME on the root domain. Add the CNAME for www.example.com first, then redirect example.com to www.example.com in Bluehost.
kurucaner
Are you pointing `example.com` or `www.example.com`? You can’t use a CNAME on the root domain. Add the CNAME for `www.example.com` first, then redirect `example.com` to `www.example.com` in Bluehost.
5 months ago
That's only true for some providers. Cloudflare provides flattening, which allows you to point the apex domain at a CNAME record.
Also, I'm pretty sure if a domain wasn't pointing to anything, the browser would return some NXDOMAIN error instead of a 404.
5 months ago
The issue is resolved now.
The problem was related to the domain itself.
I put the domain in Railway without the www
Thank you, everyone, for your support, and thank you, @kurucaner
Status changed to Solved brody • 5 months ago
Status changed to Open chandrika • 5 months ago
