I’m wondering, did you clarify to ChatGPT that you would be using Cloudflare?
CNAME record on the apex domain (e.g. the naked domain), “
carlosxavier.pt” would be against the DNS standards, and not allowed.
For all the wrong doings that ChatGPT do, I would personally suggest you (and anyone else) to refrain from using things such as ChatGPT to “assist with managing things”.
Cloudflare (and some other providers) can however do some special magic that allows
CNAME-similar functionality on the apex domain.
CNAME can, as the error message says, not exist together with any other records.
At the bottom of your screenshot, you’re showing an
A record pointing to an 185.x.x.x IP address.
At least that one, is in conflict with what you are trying to do.
Take advantage over Cloudflare, rather than letting your own server handle it.
AAAA records you have with the Name being
Proxy status: Proxied:
Set up the desired redirect on:
And select Deploy.
Bonus: Now, Cloudflare’s edge will take care of the redirection for you, without bothering your own server each time someone needs to get redirected.