Redirect Rule does not work

I just purchased a domain on Cloudflare, let’s call this one test123.com.

My “main” domain main.com is hosted on another provider. There is my business website. Now i want to redirect all incoming requests from test123.com to main.com.
I created a redirect rule like this:

  1. create rule
  2. name rule “redirect-to-main”
  3. “all incoming traffic”
  4. type: static, URL: https://main.com, status code: 301

That’s it. But the page won’t redirect at all. Open test123.com redirects to https://test123.com and i only get the “page not found” in Browser. Or should i do this with a record?

Screenshot:

Welcome to the Cloudflare Community. :logodrop:

I’m afraid that you will not be able to get much in the way of useful assistance if you are are not willing to share the real domains.

Without that detail the only suggestion that I can offer is to make sure that your Cloudflare domain is set to :orange: Proxied. If the domain is :grey: DNS Only, your redirect rule cannot be applied.

2 Likes

Thiamin working. I created a A-record in the dns section which points to the ip of my main domain. After that, the redirect url works (even for subdomains).

1 Like

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