I have two domains in cloudflare DNS - abc.ai and abc.co
My main website is on abc.co
So I want to redirect the user to https://abc.co whoever comes to https://abc.ai
I tried creating a CNAME in DNS records of abc.ai, but it didn't work.
TYPE = CNAME
NAME = abc.ai
TARGET = abc.co
Is there a way to do it?
Redirect one domain to another If you have an alias domain that only forwards traffic to another domain, you can set up redirects directly within Cloudflare.
Add your alias domain (for example, previous.com) to Cloudflare.
Make sure that your alias domain has a proxied DNS A or CNAME record that properly resolves DNS queries. You may also want to include a record for the www subdomain.
Source: https://developers.cloudflare.com/fundamentals/setup/manage-domains/redirect-domain/