Adding alias to main domain

Hey guys,

Sorry newbie here…

I have domain abc.com (main domain) that is installed on CloudFlare. Everything is fine.

Now I would like to that when someone type xyz.com or www.xyz.com, that person is redirected to abc.com.

I installed xyz.com domain in my CloudFlare account. I did not create any DNS record, but I created a page rule:

*.xyz.com/*
Forwarding URL (Status Code: 301 - Permanent Redirect, Url: https://www.abc.com/)

If I type xyz.com, it goes to https://www.abc.com/
But, if I type www.xyz.com, it gives me error:

This site can’t be reached
www.xyz.com’s DNS address could not be found.

Anybody can help me?

Thank you very much for the help!

You need that. Here’s the full set of instructions to do what you’re asking (including how to set up DNS):

3 Likes

Thank you so much! That tutorial did it for me.

2 Likes

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