CNAME pointing to my another domain not working


I want kevalvavaliya.me to redirect to kevalvavaliya.tech I have setup cname record but it is not working i gives 404 when i visit kevalvavaliya.me

Both of my domains are managed by cloudflare free plan

The CNAME will only work as a “real CNAME” if you disable proxying.
Otherwise Cloudflare optimizes it and returns the IP address(es) directly.

Is the kevalvavaliya.tech site on the same webserver as kevalvavaliya.me?

If yes, then make sure the server accepts the hostname kevalvavaliya.tech

If not, or kevalvavaliya.me is just a domain you want to redirect, then you need to use a proper redirect (CNAMEs don’t redirect hostnames, only DNS responses).

To do that, set up a rule in redirect rules (link below) and ensure you have a DNS entry for kevalvavaliya.me (use a dummy value of A 192.0.2.1 or AAAA 100:: if there’s no real site, ensure it is proxied).

https://dash.cloudflare.com/?to=/:account/:zone/rules/redirect-rules

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.