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:
create rule
name rule “redirect-to-main”
“all incoming traffic”
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?
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 Proxied. If the domain is DNS Only, your redirect rule cannot be applied.
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).