Page Rule isn't redirecting

We used to use ‘Page Rules’ to set up forwards - the new ‘redirect rules’ isn’t working.

it was:
www.theintegirtygame.com/*
redirects 301 to
https://theintegirtygame.com/$1

Here’s what we created under the 'based on the migration instructions:

Note that Page Rules are deprecated so you should migrate to a Redirect Rule instead…

What DNS records do you have for www? If they are a Cloudflare IP address (maybe your host uses Cloudflare) then redirects do not have an effect. Change the record to proxied AAAA 100:: instead.
https://cf.sjr.org.uk/tools/check?fb3bdd5719ff4f1fa5304ff58eb2c39e#dns

Yes I’m aware - that’s what I said. I migrated it - and it’s NOT working.

1 Like

The DNS for www is @ with proxy on - as this was what was needed for the previous page rules.

1 Like

What is the record for @ pointing at?

to our IP address for our website.

if you can screenshot what it should be for the ‘www’ then I can update it

Would it be like this?

1 Like

Sorry, read your title “Page Rule isn’t redirecting”.

Yes.

1 Like

This worked! Thank you so much!!!

This used to be so much simpler. Cloudflare went and complicated it all.

Solution thanks to @sjr

AAAA with www to 100::
Proxy ON

Then create a redirect rule:
When incoming requests match: Custom filter expression

Using the Expression Builder:
Hostname equals “www.example.com
Using the Expression Editor:
(http.host eq “www.example.com”)
Then:

Type: Dynamic
Expression: concat(“https://example.com”, http.request.uri.path)
Status code: 301

full instructions at Page Rules migration guide · Cloudflare Rules docs

1 Like

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