Redirect Rule For Domain - Not working for me

What is the name of the domain?

neonlacevest.com

What is the issue you’re encountering

The permanent 301 redirect rule does not work as intended (I need to reroute all traffic from this domain to an entirely different domain).

What steps have you taken to resolve the issue?

The desired outcome is to have all traffic route from domain 1 to domain 2. I set up the page redirect rule, added some DNS records to my domain, but the redirection is not working.
What am I doing wrong?

Screenshot of the error


Above is a screenshot of the redirect rule

The www DNS record needs to be proxied, you have it set to DNS only.

The static redirect needs to be to https://lacesafetyvest.com/

2 Likes

This worked thank you!

Out of curiosity:

  1. Why does the www DNS record need to be proxied?
  2. Why does the static redirect not include a wild card for all possible starts for the domain?

If you don’t, the request doesn’t go to Cloudflare and clients will try to connect to the test-range 192.0.2.1 IP address instead (which will time out).

The static redirect is where you want the redirect to go to so it can’t be a wildcard (which won’t work there anyway). You have set the rule to match on all incoming requests, so any request for the domain, or a subdomain with a proxied DNS record, will redirect to https://lacesafetyvest.com.

If you specifically want neonlacevest.com to redirect to https://lacesafetyvest.com and www.neonlacevest.com to redirect to https://www.lacesafetyvest.com then you’ll need 2 rules with custom filter expressions, or use one rule with a dynamic redirect to calculate the target.

2 Likes

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