Adding a custom root domain
Rivet will be adding a simpler solution for root domains soon.
Problem: CNAME at the root
When adding a custom domain to Rivet, you need a CNAME record to be pointed at your domain.
This works fine for subdomains, like beta.mygame.io
. However, many domain registrars don't support adding a CNAME record at the root (i.e. @
records), like mygame.io
.
Solution 1: Redirect to www
If your domain registrar supports setting up redirects, it's common to redirect from the root domain to the www
subdomain.
- Add
www.mygame.io
to the Rivet CDN - Set up a redirect from the root (i.e.
@
) towww.mygame.io
See the guides below:
Solution 2: Add your site to Cloudflare
Cloudflare supports CNAME records at the root through CNAME flattening. Adding your site to Cloudflare will let you add a CNAME record to your root domain without any extra work.