DNS Setting for redirecting my website

What is the name of the domain?

www.icaj.net

What is the error number?

521

What is the error message?

web server is down

What is the issue you’re encountering

I bought a web domain www.icaj.net on Cloudflare. When people access to this domain, I want to be redirected to another website.

What steps have you taken to resolve the issue?

I used GitHub - willnode/forward-domain: Forward Domains, completely free and open source. then followed the steps. It was working for awhile but now it’s not working. I am really confused. Can someone please help me and tell me exactly what I should do (the easiest way please).

Thank you for your help in advance.

Screenshot of the error

You don’t need any third-party things to do this.

First, you need DNS entries. You would need one for the root domain and since you want the www name to work, you need one for that as well. For our purposes they can point to anything. You already have these in place and since it doesn’t matter what they point to you can use them.

In the Cloudflare dashboard for your domain go to the Rules section. Magic link: https://dash.cloudflare.com/?to=/:account/:zone/rules/overview

Here, if you click “Create Rule”, you can choose “Redirect Rule”.

Then you’ll be on a screen with three rule templates available, the third and last of which is “Redirect to a Different Domain”. Click “Create a Rule” under that heading.

On the Create a Rule page, you can give the rule a name, which can be whatever.

Below that, the filter expression is filled in with an example domain name. Change it to yours.

Since you also want the www name to work, on the right side of that expression, click the “Or” button and another row will appear. Set Field to Hostname and Operator to Equals, the same as the first line, and add the www version of your name. The result should look like this:

Below this, under “Then”, the target of the redirect is also filled in with an example domain. Change the domain to whatever you want to redirect to. Just change the URL in quotes and leave the rest of the line as-is.

Click “Deploy” at the bottom, and you should be done.

1 Like

AMAZING!!! This is much simpler than trying to manipulate from the DNS Record section…Thank you also for providing the screen shots it really helps me to understand what I exactly have to do. I just deployed and it is WORKING!! Hooray!! Thank you so much!!

1 Like

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