My new domain redirect to another domain without previously configuration


The domain I transferred to namecheap I added the dns of cloudflare, activate the https that is placed automatically, when entering the domain the domain name is changed sending me to another web that does not have anything related to my domain


End in 12


In that case I wouldnt get a redirect but a 404.

Also, your server is not configured for HTTPS. Your site can never be secure in that case.