Page Rules Forwarding not working

He everybody,

I tried everything to get my page rules working but unfortunately I still can’t get the result I want.

I put three DNS records on proxied but the rules are not working. I tried everything.

All the help is appriciated. Thank you so much.

One rule that I want is a URL with Werk met mij - Etenslessen to be redirected to Werk met mij - Etenslessen.

This is what rule I created:

URL required: Werk met mij - Etenslessen
Rule Forward URL
Status Code: 301
Destination: Werk met mij - Etenslessen

The rule is on top of the list.

What am I doing wrong?

Appears to work.

$ curl -I http://etenslessen.com/groepscoaching
HTTP/1.1 301 Moved Permanently
Location: https://www.etenslessen.com/programma

I still get 404

See loom:

Clear your browser cache and maybe try another DNS resolver. The redirect itself works.

Thanks Sandro, I tried another browser but the same result. How do I change to another DNS resolver? And which one?

Before you change the resolver, maybe try restarting your router.

What’s the output of these commands?

ping etenslessen.com
nslookup etenslessen.com
ping www.etenslessen.com
nslookup www.etenslessen.com

ping etenslessen.com:
64 bytes from 104.26.8.152: icmp_seq=0 ttl=55 time=21.111 ms

nslookup etenslessen.com
Server: 192.168.86.1

Address: 192.168.86.1#53

Non-authoritative answer:

Name: etenslessen.com

Address: 104.26.8.152

Name: etenslessen.com

Address: 172.67.71.153

Name: etenslessen.com

Address: 104.26.9.152


ping www.etenslessen.com
64 bytes from 172.67.71.153: icmp_seq=0 ttl=55 time=27.041 ms

nslookup www.etenslessen.com
Server: 192.168.86.1

Address: 192.168.86.1#53

Non-authoritative answer:

Name: www.etenslessen.com

Address: 172.67.71.153

Name: www.etenslessen.com

Address: 104.26.9.152

Name: www.etenslessen.

You seem to resolve the correct addresses.

What does this command show?

curl -I http://etenslessen.com/groepscoaching

HTTP/1.1 301 Moved Permanently

Date : Mon, 18 Apr 2022 14:17:36 GMT

Connection : keep-alive

Cache-Control : max-age=3600

Expires : Mon, 18 Apr 2022 15:17:36 GMT

Location : https://www.etenslessen.com/groepscoaching

Report-To : {“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v3?s=n4dJH4Mr0rkTHHljnNXiSjxNaRzvmObvfD2xDyxMRe3UiNrONxVfyh7puvA60vkD5k5yFpz9QhZhcvozC1m3OTzBapy%2Bc7Sh2E3T7Eb%2FYm5Ds7ZdlkkbqBb2VRd64s9erA%3D%3D"}],“group”:“cf-nel”,"max_age”:604800}

NEL : {“success_fraction”:0,“report_to”:“cf-nel”,“max_age”:604800}

Server : Cloudflare

CF-RAY : 6fde06611cba6b36-AMS

The redirect works for you as well, so this will be a browser issue. Maybe try a different browser or browser profile. Also make sure you are not using a proxy.

okay…but the DNS record has to be proxied…right?

Sure, but I was referring to a browser proxy.

I am sorry. I am such a newbie with this haha.

No worries, but this does not appear to be a Cloudflare issue at this point, but rather something about your local setup.

So when I tried on my phone I also get a 404 record. I tried multiple browser (duck gogo, chrome, safari). Result the same.

Hang on, can you run that too?

curl -I https://etenslessen.com/groepscoaching

curl -I Werk met mij - Etenslessen

HTTP/2 301

date : Mon, 18 Apr 2022 14:24:29 GMT

location : Werk met mij - Etenslessen

cache-control : max-age=3600

expires : Mon, 18 Apr 2022 15:24:29 GMT

expect-ct : max-age=604800, report-uri=“https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct

report-to : {“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v3?s=0g9g%2FRvtUMboAN7mO%2BvFWxw1nCEne8kK%2FYtjtXgxSsB%2BLVpuCE0TojEtWZmfB%2FXR1pdhzf%2BsRdakEXYLxSzxpEDXyrxplCODf%2BPvx9D%2FE9f2TcwQdrltl%2FNo1K2OejowDg%3D%3D"}],“group”:“cf-nel”,"max_age”:604800}

nel : {“success_fraction”:0,“report_to”:“cf-nel”,“max_age”:604800}

server : Cloudflare

cf-ray : 6fde1077497b0c5d-AMS

Yep, the redirect does work for you.

Werk met mij - Etenslessen was working now!! But www.etenslessen.com/groepscoaching not. So a rule like this has to be on top of the rules, right? Do I need to make a separate rule for the www?

Try to set your page rule to

*etenslessen.com/groepscoaching