Creating Alias Domain

Hello guys, how are you?

I want to create an alias domain… I have my main domain with DNS points to Cloudflare, an Cloudflare account running perfect.

I have now another secondary domain and I want to administrate it with the same account… And I want when users write secondary domain in browser URL, they see main domain

I tried creating an CNAME record for secondary domain is an alias of main domain but is not working. I tried creating a A record for secondary domain pointing the same IP as main domain but doesnt work :frowning:

Can you help me, please?

You would need to add that second domain to Cloudflare. Then you create whatever DNS records you want and point them to dummy addresses and serve an appropriate redirect to your primary domain via a page rule.

Thanks Sandro! So, is not there any chance to administrate all domains in the same account?

Second question… if I add new account for second domain, which A records I must create?

Thanks again :slight_smile:

So part of this would be configuration on your origin server to serve the same content for both hostnames when requested. On the Cloudflare side you would just point to the same origin IP.

Thanks! But… I need only the redirection… I mind, writing secondary domain we should see primary domain in URL

Ah ok… so in that instance as @sandro mentioned add the new domain to your account and you can use a page rule.

https://support.cloudflare.com/hc/en-us/articles/200172286-How-do-I-perform-URL-forwarding-or-redirects-with-Cloudflare-

Thanks a lot :slight_smile:

1 Like

Same account? You would/could/should add that domain to the same Cloudflare account where you maintain the first one.

Actually, unless you specifically want to use Cloudflare you could simply configure a redirect on your registrar’s side, given they provide such a service (which many actually do).

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